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
解決済! 解決策の投稿を見る。
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------