Topic : Bootloader ELF file disappears

Forum : Ride IDE

Original Post
Post Information Post
August 12, 2009 - 5:05pm
Guest

Hello,

i want to debug an application together with an bootloader.

As described in several posts, i have included the elf file of the bootloader to my application. When i start debugging the flash is programmed correctly with the bootloader and the application an i can debug. But after stopping debug the bootloader elf file is not longer included in the project. Instead the source files of the bootloader are added to my application.

Starting the debug session again fails because of the missing bootloader elf file.

Any ideas?

TIA
Christian

Replies
Post Information Post
+1
0
-1
August 13, 2009 - 4:29pm
Guest

Hello

I hardly imagine this behaviour.
We need more information on to reproduce this problem:

An example would the most efficient.
You can also describe how you proceed.
The elf file is under the application node in the same level as source files (in project explorer view)?
You have set an offset to your application in "advanced arm options"?
You save the project before starting the debug?
You are able to debug your application?

Regards,
Matloub

+1
0
-1
August 14, 2009 - 10:35am
Guest

Hello,

Quote:
An example would the most efficient.

I have prepared an stripped down example to reproduce the problem. How can i upload this example (<20kByte)?

Quote:
You can also describe how you proceed.

For the example i use the following steps:
[=*]

  • example includes four files "b_main.c" = source of bootloader
    "main.c" = source of application
    "boot.elf" = bootloader
    "app.elf" = application[/*]
  • start Ride -> new project ->"Existing application to be debugged", processor STM32F103VET6 -> select the app.elf file[/*]
  • in the project explorer right click "app.elf" -> add item "boot.elf"[/*]
  • start debugging, debugging works ok, bootloader main jumps to application.[/*]
  • terminate debugging, the project explorer now shows "b_main.c" and "main.c" but no "boot.elf"[/*]
  • start debugging again, debug output shows "out of code" and debugging does not work because the bootloader is missing.[/*]
  • [/]

    Quote:
    The elf file is under the application node in the same level as source files (in project explorer view)?

    Yes

    Quote:
    You have set an offset to your application in "advanced arm options"?

    No. On startup the bootloader is invoked.

    Quote:
    You save the project before starting the debug?

    Yes

    Quote:
    You are able to debug your application?

    Yes, but only the first time.

    Versions:
    Ride 7.20.09.0162
    RKit-ARM 1.20.09.0154

    Regards,
    Christian

    +1
    0
    -1
    August 14, 2009 - 1:40pm
    Guest

    It looks like a CircleOS application, for the Primers. You can download any CircleOS application from stm32circle.com (see project section), and build your project in the same way (two applications in a single project).