iMXRT: HEX Generation from MBDT

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

iMXRT: HEX Generation from MBDT

跳至解决方案
1,052 次查看
Sam_ECU
Contributor IV

Hello @stefancinipeanu 

Is it possible to generate HEX files directly from MBDT for iMXRT?  If so, how?

 

Thanks,

Sam

标记 (2)
0 项奖励
1 解答
1,034 次查看
stefancinipeanu
NXP Employee
NXP Employee

Hello, @Sam_ECU 

The only generated executable formats directly from Simulink are .bin and .axf, but if you want to generate an .hex file, you could use the objcopy GNU tool. After, the .axf file is generated, you could run the following command in a Command Window Prompt:

 

arm-none-eabi-objcopy -O ihex "input_file.axf" "output_file.hex"

 

 

stefancinipeanu_0-1656581440588.png

 

Note that you have go in the folder where your axf file is located and give the full path of arm-none-eabi-objcopy.exe tool. Also, the objcopy GNU tool is delivered with the MBDT toolbox. You can find it in the ../src/tools/BuildTools/bin folder from the where the toolbox is installed.

Hope this will help you.

Regards,

Stefan.

在原帖中查看解决方案

0 项奖励
2 回复数
1,035 次查看
stefancinipeanu
NXP Employee
NXP Employee

Hello, @Sam_ECU 

The only generated executable formats directly from Simulink are .bin and .axf, but if you want to generate an .hex file, you could use the objcopy GNU tool. After, the .axf file is generated, you could run the following command in a Command Window Prompt:

 

arm-none-eabi-objcopy -O ihex "input_file.axf" "output_file.hex"

 

 

stefancinipeanu_0-1656581440588.png

 

Note that you have go in the folder where your axf file is located and give the full path of arm-none-eabi-objcopy.exe tool. Also, the objcopy GNU tool is delivered with the MBDT toolbox. You can find it in the ../src/tools/BuildTools/bin folder from the where the toolbox is installed.

Hope this will help you.

Regards,

Stefan.

0 项奖励
1,016 次查看
Sam_ECU
Contributor IV

Hello @stefancinipeanu 

Works like a charm.

Cheers.

0 项奖励