Reading back the flashed code

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

Reading back the flashed code

跳至解决方案
1,174 次查看
rahulkrishna
Contributor IV

Hi everyone,

 

Is it possible to read back using a debugger or any tool the flashed code in the microcontroller specifically for S12XEQ512. I flashed the code and then i want to read back the flashed code. Is it possible to do it?

 

Regards

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,065 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Rahul.


The code that written in chip is an optimized binary code but not your originally written assembly. The chip never records your original assembly code. So it is not possible to get your original assembly code from chip.

Your can use the SAVE command to save a specified block of memory to a specified file in Freescale S-record format. Reload the memory block later using the load S-record (SREC) command.  SAVE command is used in debugger command window.

Eg.

in>SAVE 0x1000..0x2000 DUMP.S19 ;A

This way can can read binary opcode from flash to s19 file. Appends the memory range 0x1000..0x2000 to the DUMP.S19 file.



Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,066 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Rahul.


The code that written in chip is an optimized binary code but not your originally written assembly. The chip never records your original assembly code. So it is not possible to get your original assembly code from chip.

Your can use the SAVE command to save a specified block of memory to a specified file in Freescale S-record format. Reload the memory block later using the load S-record (SREC) command.  SAVE command is used in debugger command window.

Eg.

in>SAVE 0x1000..0x2000 DUMP.S19 ;A

This way can can read binary opcode from flash to s19 file. Appends the memory range 0x1000..0x2000 to the DUMP.S19 file.



Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复