files for flash programming

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

files for flash programming

Jump to solution
3,058 Views
admond
Contributor I

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

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
794 Views
trytohelp
NXP Employee
NXP Employee

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 

 

test.zip

 

 

 

Message Edited by t.dowe on 2009-09-04 10:39 AM

View solution in original post

0 Kudos
Reply
3 Replies
795 Views
trytohelp
NXP Employee
NXP Employee

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 

 

test.zip

 

 

 

Message Edited by t.dowe on 2009-09-04 10:39 AM
0 Kudos
Reply
794 Views
admond
Contributor I
thank you for explaining so much. another question : is there any convenient method to reset debug excpet restart, since restart in fact comprises kill and debug which needs redownloading code to target. some other IDEs really get reset of debug in use. so can you explain it in detail ? thank you
0 Kudos
Reply
794 Views
trytohelp
NXP Employee
NXP Employee

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

0 Kudos
Reply