Debug multiple elf files with CW 6.4?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debug multiple elf files with CW 6.4?

2,883 Views
mike_pcs
Contributor II
Is it possible to debug two elf files simultaneously?  I've got a separate bootloader and application (each are their own project with separate linker control files) as well as another dummy project that just builds those two and merges the resulting s record files.  Everything works out just fine except that I can only debug one at a time.
 
Is there a way to load two .elf files for debugging or a way to merge the two elf files (as a post build operation)?  I've spent some time searching the forums and through the manuals, but was not able to find anything.
 
I'm using Codewarrior 6.4 special edition.
 
Thanks for the help-



J2MEJediMaster added CW version to subject header


Message Edited by J2MEJediMaster on 2008-01-07 09:44 AM
Labels (1)
0 Kudos
4 Replies

404 Views
J2MEJediMaster
Specialist I
I'm not clear on what you mean that you can only debug one of them at a time? Is it because both the bootloader and application use different interrupt vector tables, and one of them is getting mashed when you do the merge? I know there have been some forum threads on how to implement a bootloader/application combination, but I don't recall if they had any issues with debugging such a setup.

---Tom
0 Kudos

404 Views
mike_pcs
Contributor II
Yeah, they are both completely separate with their own vector tables.  Building the complete image as an S-record file works just fine (merging two non-overlapping S-Record files).  The issue is that I can only seem to be able to load one of the .elf files at a time.  When one application transfers control to the other you lose the ability to debug (since there is no debugging information at the address of the other application).  It would be nice to be able to step through code and set breakpoints in either image during one debug session.
 
I've looked at the other threads in the forums and they seemed to question the general mechanics of how to build a complete image from two separate images.  I've got this working just fine and am just looking how to debug it.
 
Thanks
0 Kudos

404 Views
J2MEJediMaster
Specialist I
I checked with our ColdFire App Engineer on your porblem and he just replied. The answer is no. You can only debug one app at a time. Sorry to be the bearer of bad news.

---Tom
0 Kudos

404 Views
mike_pcs
Contributor II
No worries.  I assumed as much.
 
I guess I could dig into the elf file format to see how I could merge the two files into one.  That would probably be my only bet...
 
Thanks for the help.
 
Mike
0 Kudos