How to read the whole pflash In HCS12X

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

How to read the whole pflash In HCS12X

403 Views
yangzhang112
Contributor I

How to read the whole pflash of mc9s12xhy256? Is there any shortcut? The compiler for this chip is 5.10.

I'd like to see if the content burned into flash is the same as that in the burn file.

0 Kudos
1 Reply

356 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

 

Entire memory dump using global address:

 

Go to command window in the hiwave.exe (I suppose you are able to connect to the mcu).

Write a command:

SAVE 0x7C0000'G..0x7FFFFF'G C:\\d\DUMP_GLOBAL.SX

 

pastedImage_2.png

 

Entire memory dump using PAGE addresses:

 

Go to command window in the hiwave.exe (I suppose you are able to connect to the mcu).

Create a command file, for example dump_memory.cmd, in any editor with following content (not; the first line is without ;A (it means add data to existing file)):

 

SAVE 0xF08000.. 0xF0BFFF C:\\DUMP_PPAGE.SX

SAVE 0xF18000.. 0XF1FFFF C:\\DUMP_PPAGE.SX ;A

SAVE 0XF28000.. 0XF2BFFF C:\\DUMP_PPAGE.SX ;A

SAVE 0xF38000.. 0XF3BFFF C:\\DUMP_PPAGE.SX ;A

SAVE 0xF48000.. 0XF4BFFF C:\\DUMP_PPAGE.SX ;A

SAVE 0xF58000.. 0XF5BFFF C:\\DUMP_PPAGE.SX ;A

SAVE 0xF68000.. 0XF6BFFF C:\\DUMP_PPAGE.SX ;A

SAVE 0xF78000.. 0XF7BFFF C:\\DUMP_PPAGE.SX ;A

SAVE 0xF88000.. 0XF8BFFF C:\\DUMP_PPAGE.SX ;A

SAVE 0xF98000.. 0XF9BFFF C:\\DUMP_PPAGE.SX ;A

SAVE 0xFA8000.. 0XFABFFF C:\\DUMP_PPAGE.SX ;A

SAVE 0xFB8000.. 0XFBBFFF C:\\DUMP_PPAGE.SX ;A

SAVE 0xFC8000.. 0XFCBFFF C:\\DUMP_PPAGE.SX ;A

SAVE 0xFD8000.. 0XFDBFFF C:\\DUMP_PPAGE.SX ;A

SAVE 0xFE8000.. 0XFEBFFF C:\\DUMP_PPAGE.SX ;A

SAVE 0xFF8000.. 0XFFBFFF C:\\DUMP_PPAGE.SX ;A

 

Then in the hivawe, when you are connected, press mouse at command window. After this the option COMMAND appears in the main option bar. Press execute command and search for your file:

pastedImage_1.png

 

For more info about commands go to the help file of the CodeWarriorr IDE and read info about command SAVE and command files.

 

Best regards,

Ladislav

0 Kudos