Chargement

For Formula Flowcode Micromouse users to discuss projects, flowcharts, and any other issues related to the Formula Flowcode Micromouse.

Moderator: Benj

Post Reply
Jean
Posts: 4
Joined: Thu Sep 06, 2007 2:10 pm
Location: NANTES
Contact:

Chargement

Post by Jean »

J'avis dans mes tirroirs un PIC18F4550 qui a un peu plus de mΓ©moire que le PIC18F4455. J'ai effectuΓ© l'Γ©change sur Formula mais le chargement ne fonctionne pas. Je suppose qu'il y a un bootstrap Γ  charger au prΓ©alable. Ou peut-on le trouver?

Merci d'avance.
Jules

johndobson43
Posts: 14
Joined: Sat Nov 04, 2006 2:38 pm
Contact:

18F4550

Post by johndobson43 »

bonjour Jules

Oui - il y a un bootloader. Malheurusement c'est n'est pas possible a vous donner le code pour le bootloader pour le 18F4550.

Aussi il y a beaucoup de memoire dans le 18F4455. Est ce que vous avex le besoin de plus de memoire?

John

Jean
Posts: 4
Joined: Thu Sep 06, 2007 2:10 pm
Location: NANTES
Contact:

Re: 18F4550

Post by Jean »

johndobson43 wrote:bonjour Jules

Oui - il y a un bootloader. Malheurusement c'est n'est pas possible a vous donner le code pour le bootloader pour le 18F4550.

Aussi il y a beaucoup de memoire dans le 18F4455. Est ce que vous avex le besoin de plus de memoire?

John
Je voudrais programmer en assembleur car je connais ce langage, et utiliser les interruptions.
J'ai d'autres programmeurs pour les PIC mais j'aurais aimer utiliser celui du Formula pour Γ©viter de sortir le Pic de son support Γ  chaque programmation.
OΓΉ peut-on trouver d'autres firmwares compatibles avec l'USB du FORMULA ?
Jules

kk
Posts: 11
Joined: Sat Sep 08, 2007 1:36 pm
Location: Flanders - Western Europe
Contact:

Post by kk »

Bonjour Jules,

Cherche l' internet pour "PICDEM FS USB", tu trouveras toute que vous voulez.

KK
The chief wonder of education is that it does not ruin everybody concerned in it. (Henry Brooks Adams)

User avatar
Steve
Matrix Staff
Posts: 3418
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Post by Steve »

Bonjour Jules,

[Sorry this reply is in English - hopefully someone else can translate it if you need it in French]

You should be able to program Formula Flowcode in any language, as long as you ensure that your code begins at memory location 0x800. The locations 0x000 to 0x7FF are reserved by the bootloader and must not be overwritten.

The Formula Flowcode programmer takes a standard HEX file [BuggyProg.exe] can be downloaded separately from Flowcode and can be used on its own to transfer programs.

You do not need to replace the existing bootloader firmare.

I hope this answers your question.

Jean
Posts: 4
Joined: Thu Sep 06, 2007 2:10 pm
Location: NANTES
Contact:

Post by Jean »

You should be able to program Formula Flowcode in any language, as long as you ensure that your code begins at memory location 0x800. The locations 0x000 to 0x7FF are reserved by the bootloader and must not be overwritten.

The Formula Flowcode programmer takes a standard HEX file [BuggyProg.exe] can be downloaded separately from Flowcode and can be used on its own to transfer programs.

You do not need to replace the existing bootloader firmare.

I hope this answers your question.[/quote]


Merci pour la rΓ©ponse. J'en conclues qu'il n'est pas possible d'utiliser les interruptions si l'on garde le bootloader ?

Si on utilise le bootloader, après chargement, il donne la main à quelle adresse ? faut-il appuyer sur une touche pour lancer le programme ?

Merci d'avance pour les rΓ©ponses.
Jules

Jean
Posts: 4
Joined: Thu Sep 06, 2007 2:10 pm
Location: NANTES
Contact:

Post by Jean »

kk wrote:Bonjour Jules,

Cherche l' internet pour "PICDEM FS USB", tu trouveras toute que vous voulez.

KK
Merci pour la rΓ©ponse.
Pour utiliser ce Firmware il faut :
- Le compilateur PIC18,
- le board PICDEM,
- une horloge Γ  20 MHZ.

Tout ceci me semble incompatible avec le FORMULA.
Jules

User avatar
Steve
Matrix Staff
Posts: 3418
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Post by Steve »

All vectors (reset vector and both interrupt vectors) are mapped to the same location plus 0x800. Therefore:

reset vector = 0x800
high-priority interrupt = 0x808
low-priority interrupt = 0x818

In assembler, you need to put "ORG 0x800" at the beginning of your program. Any program instructions located before 0x800 in the HEX file will be ignored by the downloader program ("BuggyProg.exe").

When the program has been loaded using "BuggyProg.exe", select "program..reset buggy". This will make your program begin.

Alternatively, unplug the USB cable and then press the reset button (SW3).

Post Reply