Read S912XEP100 Entire Flash

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

Read S912XEP100 Entire Flash

861 Views
dannydeng
Contributor III

Dears,

Can you help to share the way to read out the entire flash of XEP100 MCU, as customer hope to compare their failure PCBA,

BRs,

Ray

0 Kudos
Reply
3 Replies

745 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

You could use SAVE command in the CW5.2

Please refer to Debugger_HC_12.pdf (p552) located in the CW installation folder.

...\Program Files (x86)\Freescale\CWS12v5.2\Help\pdf\

Regards,

Daniel

0 Kudos
Reply

745 Views
RadekS
NXP Employee
NXP Employee

For reading Flash content you can use directly CW debugger (Hi-wave).

Connect to MCU and use command SAVE.

In Help, you can find example SAVE 0x1000..0x2000 DUMP.SX

This command saves memory range into file dump.sx in S1 record format.

 

You can use also paged address. Example: SAVE 0xF88000..0xF8BFFF DUMP.SX

In that case, you cannot copy data from more pages at one turn because after address 0xF8BFFF is physically 0xF98000 address and not 0xF8C000 address. This tool is simply not enough intelligent.

In that case, dump.sx file will contain S2 record format automatically.

 

For copy whole flash at one turn, you can use global address (only for S12X).

Example : SAVE 0x700000’G..0x7FFFFF’G DUMP.SX

In that case dump.sx file will contain S2 record format automatically.

 

For convert result file you can use SRecCvt tool.

 

If you prefer paged address or you have MCU without GPAGE (S12) and you want store whole content of flash into one file, only way is using local addressing and export every page step by step.

SAVE 0xC08000..0xC0BFFF dump.txt ;A

SAVE 0xC18000..0xC1BFFF dump.txt ;A

SAVE 0xFF8000..0xFFBFFF dump.txt ;A

By parameter “;A” we will attempt new content to exiting file. 

This way you will have one file with whole Flash content.

 

 

Example of procedure:

  1. Connect USB Multilink and power to MCU
  2. Start debugger (HiWave). Example path: "c:\Program Files\Freescale\CWS12v5.1\Prog\hiwave.exe"
  3. In menu-Select Derivative choose your MCU, for example MC9S12XEP100DUMP1.PNGDUMP2.PNG
  4. Optionally you have to set also USB Multilink in Connection Manager window (menu-Communication)
    DUMP3.PNG
  5. MCU should be now connected and you can read “Target Ready” in Command window
    DUMP4.PNG
  6. Enter command “SAVE 0x700000'G..0x7FFFFF'G DUMP.txt” into Command window and press Enter
    DUMP5.PNG
  7. Now you should wait some time (depends on MCU clock and BDM speed)
    DUMP6.PNG
  8. File DUMP.txt you can find in the same directory as debugger. Example path: "c:\Program Files\Freescale\CWS12v5.1\Prog\DUMP.txt"
    DUMP7.PNG

Note: Pictures show different type of MCU, but principle is the same.

 

 


I hope it helps you.

Have a great day,
Radek

0 Kudos
Reply

745 Views
dannydeng
Contributor III

Thanks, Radek,

0 Kudos
Reply