Dear NXP Technical Support Team,
I would like to confirm whether CodeWarrior Development Tools v11.0 (specifically for ColdFire/MCF547x series) includes emulator functionality that supports the following workflow:
Import Binary/HEX Files:
Directly load compiled *.bin or *.hex files into the emulator.
Disassembly to Assembly Code:
Automatically convert the binary/HEX content into assembly code (ColdFire V4e instruction set).
Debugging Features:
If supported, does the emulator allow:
Step-through execution (single-step, breakpoints)?
Register/memory inspection?
Real-time modification of code/data?
Hi @GAO123
CW 11 doesn't have emulator functionality.
The S19 and HEX files contain optimized binary code for burning, not the original assembly code. When loading the image in the debugger, we can view the disassembled code, but stepping through it is limited because it doesn’t match the original source.
Thanks,
Jun Zhang
Hi,
I'm not aware of any way to directly disassemble s-record or binary back into CF disassembly in CodeWarrior.
CF Linker (c:\Freescale\CW MCU v11.1\MCU\ColdFire_Tools\Command_Line_Tools>mwldmcf.exe -help) supports disasembly listing generation only from executable file (.elf)
Anyway you can definitely load/import the binary file into the real MCU (sorry ColdFire emulation/simulator is not supported by CodeWarrior) using debug probe and let debugger to interpret the code at the loaded address.
Hope it helps.
Stan
Hi @GAO123
We can use decoder.exe under CW11 to generate disassembly code. You can search out decoder.exe under CW11 install folder.
Set Options as : -A -Proc=M68k
Drag your S19 file to the decoder, and you will see a *.lst file generated. Then, scroll down and you will see the disassembly generated in the lst file, for example as follows.
Have a nice day,
Jun Zhang
Thank you for your reply.
The decoder.exe in the CW11 installation directory cannot be set to Options as: - A - Pro=M68k, there is no such option. Additionally,
Does M68k fully include the instruction set of ColdFire V4e core kernel. Can it be simulated and debugged.
Hi GAO123
Please check setting below:
Hope it helps,
Jun Zhang