Customized Flowcode Bootloader ARM

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
User avatar
Nico595
Posts: 84
Joined: Mon Jan 23, 2012 6:46 pm
Location: Toulouse France
Has thanked: 12 times
Been thanked: 10 times
Contact:

Customized Flowcode Bootloader ARM

Post 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.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Customized Flowcode Bootloader ARM

Post 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.

User avatar
Nico595
Posts: 84
Joined: Mon Jan 23, 2012 6:46 pm
Location: Toulouse France
Has thanked: 12 times
Been thanked: 10 times
Contact:

Re: Customized Flowcode Bootloader ARM

Post 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 ?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Customized Flowcode Bootloader ARM

Post 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 312 times

User avatar
Nico595
Posts: 84
Joined: Mon Jan 23, 2012 6:46 pm
Location: Toulouse France
Has thanked: 12 times
Been thanked: 10 times
Contact:

Re: Customized Flowcode Bootloader ARM

Post 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

User avatar
Nico595
Posts: 84
Joined: Mon Jan 23, 2012 6:46 pm
Location: Toulouse France
Has thanked: 12 times
Been thanked: 10 times
Contact:

Re: Customized Flowcode Bootloader ARM

Post 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.

Post Reply