File with just executable code (MC56F8323, CodeWarrior Development Studio for DSC56800/E version 8.0)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

File with just executable code (MC56F8323, CodeWarrior Development Studio for DSC56800/E version 8.0)

3,816 次查看
jgjulli
Contributor I

My understanding is that the .elf file also contains a great deal of information, including headers, section header tables, symbol tables, etc. This information is not stored in the program flash as I understand it (maybe I'm wrong). Is there a way to get an output file that contains only the executable code section (.text), because that is what I think has been loaded into the program flash. For ColdFire, I understand you can do the following:

Debug->ColdFire->Load/Save Memory to grab the exact binary image in the Flash.

I'm trying to find out if there is something similar for the DSP tools.



Message Edited by jgjulli on 2007-09-11 02:28 PM
标签 (1)
标记 (1)
0 项奖励
回复
4 回复数

1,175 次查看
jgjulli
Contributor I
Thanks for all the help - I am very grateful! There is so much information, it can feel like you're drinking from the firehose (and sometimes this learning curve looks like a cliff...) 
0 项奖励
回复

1,175 次查看
trytohelp
NXP Employee
NXP Employee
Hi,
 
In the target seetings panel, in the M56800E Linker Panel Elements there is an option to generate a Srecord file.
Generate SRecord File checkbox
 checked: Linker generates an output file in S-record format.
 Clear: Linker does not generate an S-record file.
For the DSP56800E, this option outputs three S-record files:
 .s (both P and X memory contents),
 .p (P memory contents),
 .x (X memory contents).
The linker puts Srecord files in the output folder (a sub-folder of the project folder.)
Please refer to the Targeting_56800E.pdf manual page 73.
 
Regards
Pascal
0 项奖励
回复

1,175 次查看
J2MEJediMaster
Specialist I
I understand what you mean: the ELF file can have debugger symbols in it. Nevertheless, the ELF file is where the debugger and flash programmer pick up the machine code to simulate or download into Flash. I presume that the module that performs the downloading to Flash strips out the debug symbols.

You need to consult the 5800E Flash Programmer Users Guide manual, which came with the DSP installation. It's located under the {CodeWarrior Directory}\Help\PDF subdirectory as the file Flash_Programmer_Users_Guide.pdf. The command-line version of the Flash programmer also support a -crc option, which performs a 32-bit CRC from a start address to an end address, and reports this value to you.

Sorry for the delay in replying. I had to track this down. HTH.

---Tom
0 项奖励
回复

1,175 次查看
CrasyCat
Specialist III
Hello
 
Not sure I understand what you are looking for here.
 
If in your project you activate "Generate S Record File " in the "M56800E Linker" panel, you should get a Motorola S file containing the code and constant that need to be loaded to the flash.
Make sure to specify you want to use DOS EOL character in the panel.
 
Additionally as far as I can tell there is also a menu entry "Debug" -> "DSP56800E" -> "Load/Save Memory " available in the DSP development tool chain.
 
I hope that helps.
 
CrasyCat
0 项奖励
回复