Topic : How to debug a boot-loaded application?

Forum : ARM

Original Post
Post Information Post
August 27, 2008 - 12:43pm
Guest

The bootloader would load the application (including its vector table, of course) from address 0x0800_2000, and then "call" the application's reset vector.

So how does one tell the debugger to start the application from there?

This must be a common requirement - surely...?!

There didn't seem to be any satisfactory answers in this thread: http://www.raisonance.com/Forum/punbb/viewtopic.php?id=1952

BTW: the Bootloader is as described in ST's App Note AN2557
http://www.st.com/stonline/products/literature/an/13588.pdf

Replies
Post Information Post
+1
0
-1
August 28, 2008 - 10:18am
Guest

Within RIDE, you can add an (or several) existing .elf (executable) file in your application project. When launching the debug session for the selected project, the auxiliary applications will be also loaded. The CircleOS of the Primer is a good example.
To add an auxiliary application (bootloader.elf), select your application then (popup menu) run the 'add an existing item' command and select your auxiliary application (bootloader.elf).
Note that the two applications could be in the same project (a project can contain several applications, and an application can contain several auxiliary application. Each of these auxiliary application can be present or not present in the project).
I hope it's not too confusing.... Just try and you will understand if it is not clear.

+1
0
-1
October 7, 2008 - 10:21am
Guest

Francis Lamotte wrote:
Within RIDE, you can add an (or several) existing .elf (executable) file in your application project. When launching the debug session for the selected project, the auxiliary applications will be also loaded.

Tried that: seems to work - thanks!

Quote:
Note that the two applications could be in the same project (a project can contain several applications, and an application can contain several auxiliary application. Each of these auxiliary application can be present or not present in the project).

There is an option in the popup menu, 'Set as StartUp Application' - how should this be set?

Should the Bootloader be set as the 'Startup Application', or should the main application be the 'StartUp Application' ?

I couldn't find anything about it in the documentation...

+1
0
-1
October 7, 2008 - 11:26am
Guest

Adding a new 'Application to Build' has not worked:

When I try to build it, it just says, "Unknown tool : $(Target.Tools.Compiler)"

Please can you give more detailed instructions on how to add the bootloader as an application in the "main" firmware project?