Topic : Debug Application - Project type

Forum : Ride IDE

Original Post
Post Information Post
May 15, 2009 - 12:03pm
Guest

Hi,
I am trying to use the Debug Application, project type. I have created a project that contains application code and then added a "Debug Application" project to this collection.
I Added two .elf files (bootloader + application) that make up a suitable download, but once I hit start debug - Ride just say "Starting emulator" and returns to the normal view without starting the debugger.

If I add my bootloader elf to the application project and selects debug on that works, but normally the bootloader elf will not be a part of the final release.

Replies
Post Information Post
+1
0
-1
May 15, 2009 - 12:41pm
Guest

The classic solution consists in creating your application, and adding your elf bootloader within your application. You can also add your elf application within your bootloader project. But you don't need to create a third project.
An example is generated by a wizard when you create an application for CircleOS.

+1
0
-1
May 18, 2009 - 8:54am
Guest

Yes, I know that.
The problem I wanted to avoid is that the bootloader elf is embedded into the application elf. And that combined elf is not what I release.

When I release code - I do not release the bootloader image again. If I do it the way you suggest I need to remember to remove the bootloader elf when I release the application. And to debug I need to remember to add it again.

I can think of ways to avoid using the "Debug Application" project - But not other ways that enabled me to debug the exact elf that I release to production.

What really annoys me, though.. is that if the "Debug Application" project does not work, then why haven't you removed that option from the IDE?! It only adds to the confusion and I spend my limited time trying to get it to work... Same as scripting.. Something I still haven't figured out how works? If they are not yet implemented, REMOVE Them until they are! (You must know of conditional compilation??)

You might think that you release a free IDE and for a free IDE - RIDE works better than many, but I do not consider it free. We have bought 4 Rlink Pro's - To use with RIDE. There would have been far cheaper downloading options..

BR
Henrik

+1
0
-1
May 18, 2009 - 2:35pm
Guest

To Henrik,
The solution Francis proposed does not mean that one ELF will embed the other. It's only a facility for debugging : the two elf files will be independent and the debugger will load one first, then the other. This can be done with any elf file.
Now, you could release only one ELF file, and not the pair. You need to combine the, only for debugging (when the FLASH has been fully erased by the debugger). Let me know if you need more information.

+1
0
-1
May 19, 2009 - 8:31am
Guest

Thanks.. That solved my problem. Don't know how logical it is - That an elf added to a project is not merged with the rest of the project, but merely downloaded separatly by the debugger..

Please please remove menuitems that are not implemented or working - If not the "Debug application" project had been there I would have examined the output from the other project types.

/Henrik