CW8.0 - How to get image of code in program flash MC56F8323

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

CW8.0 - How to get image of code in program flash MC56F8323

2,291 Views
jgjulli
Contributor I
I want to compute a CRC on the program flash in our application as part of a self test.  I believe the .tgt file contains the binary representation of the program loaded to program flash, but it looks like there is additional build data in this file that I do not want.  How do I get an exact image of code?
 
Thanks!
 
P.S. Using CodeWarrior Development Studio for DSC56800/E version 8.0.


Message Edited by jgjulli on 2007-09-10 02:25 PM

Message Edited by Alban on 2007-09-12 12:05 AM
Labels (1)
Tags (1)
0 Kudos
Reply
2 Replies

726 Views
stanish
NXP Employee
NXP Employee
I'd suggest you to see linker feature CRC16 ("CodeWarrior home dir.\Help\PDF\56800x_Build_Tools_Reference.pdf", page 112-115) that allows you to calculate 16 bit CRC over  selected  range of  memory. You might find it useful in your application.
0 Kudos
Reply

726 Views
J2MEJediMaster
Specialist I
Your output file should have an extension of .elf. Go to the project's settings panels, and look at the M568000 Target settings panel. The name in the Output File Name item will be the name of the file generated with your program's code in it. While you're there, make sure the Project Type item is set to Application. You can find out more information on this panel and other project settings in the CodeWarrior Development Studio for FreescaleTM 56800/E  Targeting Manual.

I don't not familiar enough with the DSP tools to know if there's a facility to calculate a checksum.

---Tom
0 Kudos
Reply