Confirm whether CodeWarrior Development Tools v11.0 includes emulator functionality

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

Confirm whether CodeWarrior Development Tools v11.0 includes emulator functionality

1,331 次查看
GAO123
Contributor III

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:

  1. Import Binary/HEX Files:

    • Directly load compiled *.bin or *.hex files into the emulator.

  2. Disassembly to Assembly Code:

    • Automatically convert the binary/HEX content into  assembly code (ColdFire V4e instruction set).

  3. Debugging Features:

    • If supported, does the emulator allow:

      • Step-through execution (single-step, breakpoints)?

      • Register/memory inspection?

      • Real-time modification of code/data?

0 项奖励
回复
7 回复数

1,309 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复

1,222 次查看
GAO123
Contributor III
Thank you.
Which CodeWarrior version can directly support importing bin/hex files and disassembling them through the built-in disassembly view (debug mode)?
0 项奖励
回复

1,218 次查看
GAO123
Contributor III
Based on MCF5474 microcontroller.
0 项奖励
回复

387 次查看
stanish
NXP Employee
NXP Employee

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)

stanish_0-1755905304168.png

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

0 项奖励
回复

1,157 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

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.

ZhangJennie_0-1751013116096.png

Have a nice day,

Jun Zhang

 

0 项奖励
回复

1,089 次查看
GAO123
Contributor III

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.

1.png2.png3.png4.png

0 项奖励
回复

1,084 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi GAO123 

Please check setting below:

ZhangJennie_2-1751365381341.png

 

ZhangJennie_1-1751365325204.png

Hope it helps,

Jun Zhang

 

0 项奖励
回复