Page 1 of 1

Customized Flowcode Bootloader ARM

Posted: Fri May 02, 2014 9:55 am
by Nico595
Hi,

I want customized Flowcode V5 ARM bootloader. How do you make it ?

- Original bootloader is no fast, actually more 5sec for start.
- I want add my Glcd driver and display my logo with waiting information.
- I've not need HID USB link.

Thank you very much for your answer :)

Nico.

Re: Customized Flowcode Bootloader ARM

Posted: Fri May 02, 2014 10:13 am
by Benj
Hello,

Doing a Google search for "AT91SAM7S Bootloader" brings up some useful info.

We use the HID bootloader because the one Atmel provides only works on 32-bit machines and is known to cause bluescreens.

I wrote the HID bootloader using Flowcode v4 but I had to hack my way through a lot the files behind the scenes to get it to do it.

Re: Customized Flowcode Bootloader ARM

Posted: Fri May 02, 2014 10:40 am
by Nico595
Hi Ben :)

Thank you for your fast answer.

I searched information yesterday, but unsuccessfully.
With Matrix Multimedia hex file project, can I use all bootloader for AT91SAM7S ?

Re: Customized Flowcode Bootloader ARM

Posted: Fri May 02, 2014 10:46 am
by Benj
Hello,

Flowcode would need to be configured, i.e. some of the files behind the scenes would need to be changed to allow the file created by the compiler to be shifted to the right location for the bootloader you want to use.

The files are all located here: C:\Program Files (x86)\Flowcode(ARM)\v5\Tools\Global

Here are some of my source files which may help to get you started.
ARM_Bootloaders.zip
(4.37 MiB) Downloaded 343 times

Re: Customized Flowcode Bootloader ARM

Posted: Fri May 02, 2014 11:03 am
by Nico595
Yes, Great Ben :D

Thank you

I found this:

"At startup, it waits for a few seconds to see if the downloader is trying to connect. If not, then the bootloader gives up control and jumps to your program. If the downloader is trying to connect, then the bootloader receives the new program over USB and writes it into flash."

Essentially, I think is this delay my problem.
I want switch off this delay or test, my project hex file is load with JTAG
The final device does not need this feature.

EDIT: Perfect this files. If I understood, I can design bootloader with Flowcode :)
I copied "Flowcode ARM bootloader file" directory in my Flowcode directory, but I have this error in French ^^:

Code: Select all

"impossible de créer le microcontroleur AT91SAM7BOOT puisque le fichier de definition AT91SAM7BOOT.FCD est manquant ou corrompu [0x1f00]"
I checked AT91SAM7BOOT.FCD, this file is in my Flowcode directory \FCD\AT91SAM7BOOT.FCD
I have AT91SAM7BOOT in the list of processors

Re: Customized Flowcode Bootloader ARM

Posted: Fri May 02, 2014 2:03 pm
by Nico595
Oki Ben :)

I took C code of Low Level Init, defines and Flash Init and I added in my project file as Macro.
I started with this macro and I compiled with start add 0x0

It's Perfect :)

Thank you very much for your help,
Nice Week End

Nico.