Debug multiple elf files with CW?

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

Debug multiple elf files with CW?

Jump to solution
1,246 Views
BASAV
Contributor I

Hi!
I am working with MC9S08DZ60 controller. compiled with cosmic compiler and am using Hiwave debugger.
I have divided my project into BOOT and Application. boot code resides in the flash from 0x8200 -> 0xFFFF. Application resides in the flash at 0x1900. and have built two .elf files separately for debugging.

My issue is, when i am trying to load two .elf files, Flash is erased before each burn, and only the last file is actually be retained in Flash. due to this am unable to see boot functions when i load application.
I tried flash block protection feature in the DZ60, which is NVPROT register needs to be programmed with the value, the amount of flash needs to be protected(0xEA). After exit from reset, the high page register FPROT is loaded with the contents of the NVPROT location,
I am successfully writing it in my case. even-though it didn't solve my problem.


So my question is, Is there a way to debug two elf files simultaneously? which is the important requirement of my customer.

For time being, I built a single .elf file from boot & app. If you guys can provide some solution, it's greatly helpful.

 

Thanks in advance.


I am using Code Warrior 6.3 special edition


Labels (1)
Tags (1)
0 Kudos
1 Solution
516 Views
kef
Specialist I

If your bootloader is already done, then you may simply include bootloader S-records in application binaries. This can be done adding HEXFILE line to your prm file, like this:

 

HEXFILE bootloader.s19

 

View solution in original post

0 Kudos
2 Replies
517 Views
kef
Specialist I

If your bootloader is already done, then you may simply include bootloader S-records in application binaries. This can be done adding HEXFILE line to your prm file, like this:

 

HEXFILE bootloader.s19

 

0 Kudos
516 Views
rocco
Senior Contributor II

Hi Basav,

 

Welcome to the forum.

 

Try this:

https://community.freescale.com/thread/59864