Hi guys:
these days, I study the flash programming. the manual says you can download both S-record and ELF file to chips. I have no doubt on S-record file, bu do have some on ELF. every time I make project and get sveral other files such sdm_pROM-xRAM.elf (CodeWarrior Link Map) and sdm_pROM-xRAM (CodeWarrior ELF Debug Executable) except .s files. When I open 5600E flash programmer and choose files for download as ELF file type chosen, only sdm_pROM-xRAM (CodeWarrior ELF Debug Executable) can be selected not sdm_pROM-xRAM.elf (CodeWarrior Link Map). so I don't know why it is like this for .elf has the right ELF suffix or the former one is the real ELF file?
thank you in advance
Xidi
05.12.2009
Solved! Go to Solution.
Hi,
In the Target settings panel, under M56800E linker you can select Generate S-Record file.
Then the linker will generates the Srecord file.
Attached you will find an example.
Please have a look in the \test\output folder.
There are 5 files:
sdm_external_memory.elf
sdm_external_memory.elf.p.S
sdm_external_memory.elf.S
sdm_external_memory.elf.x.S
sdm_external_memory.elf.xMAP
sdm_external_memory.elf.xMAP is the map file giving info about the memory mapping used by your application.
sdm_external_memory.elf is the executable file containing code and debug info.
This is the file used by CodeWarrior when you want to debug the application.
sdm_external_memory.elf.p.S, sdm_external_memory.elf.S, sdm_external_memory.elf.x.S are the Srecord files:
sdm_external_memory.elf.p.S contains code only
sdm_external_memory.elf.S contains code and data
sdm_external_memory.elf.x.S contains data only.
For the Flash programmer tool you must load the sdm_external_memory.elf.S.
The difference between sdm_external_memory.elf.S and sdm_external_memory.elf is just the debug info.
With the flash programmer you can download both of them.
When you launch the 56800E Flash Programmer.exe in the S-Record file to load field you can define the file you want to load. If you click on ... button, an Open dialog will appear.
In this dialog you can select the type by Files of Type.
Select All Files.
Now the system will show you all files and folder containing in the current folder.
Hope this will help you.
Regards
Pascal
Hi,
In the Target settings panel, under M56800E linker you can select Generate S-Record file.
Then the linker will generates the Srecord file.
Attached you will find an example.
Please have a look in the \test\output folder.
There are 5 files:
sdm_external_memory.elf
sdm_external_memory.elf.p.S
sdm_external_memory.elf.S
sdm_external_memory.elf.x.S
sdm_external_memory.elf.xMAP
sdm_external_memory.elf.xMAP is the map file giving info about the memory mapping used by your application.
sdm_external_memory.elf is the executable file containing code and debug info.
This is the file used by CodeWarrior when you want to debug the application.
sdm_external_memory.elf.p.S, sdm_external_memory.elf.S, sdm_external_memory.elf.x.S are the Srecord files:
sdm_external_memory.elf.p.S contains code only
sdm_external_memory.elf.S contains code and data
sdm_external_memory.elf.x.S contains data only.
For the Flash programmer tool you must load the sdm_external_memory.elf.S.
The difference between sdm_external_memory.elf.S and sdm_external_memory.elf is just the debug info.
With the flash programmer you can download both of them.
When you launch the 56800E Flash Programmer.exe in the S-Record file to load field you can define the file you want to load. If you click on ... button, an Open dialog will appear.
In this dialog you can select the type by Files of Type.
Select All Files.
Now the system will show you all files and folder containing in the current folder.
Hope this will help you.
Regards
Pascal
hi,
We don't have reset button.
The restart kill and re-launch the debugger.
In the Target Settings Panels under Debugger ¦ Remote Debug Options, the Program Download Options can be addapted depending of your need.
There aree option for Initial Launch and for Successive Runs.
For details please have a look to the Targeting_56800E.pdf page 80. (Manual from CodeWarrior for DSC56800E v8.2.3).
Regards
Pascal