Reading back the flashed code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Reading back the flashed code

ソリューションへジャンプ
588件の閲覧回数
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 解決策
479件の閲覧回数
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 返信
480件の閲覧回数
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 件の賞賛