iMXRT: HEX Generation from MBDT

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMXRT: HEX Generation from MBDT

Jump to solution
1,009 Views
Sam_ECU
Contributor IV

Hello @stefancinipeanu 

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

 

Thanks,

Sam

Tags (2)
0 Kudos
1 Solution
991 Views
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.

View solution in original post

0 Kudos
2 Replies
992 Views
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 Kudos
973 Views
Sam_ECU
Contributor IV

Hello @stefancinipeanu 

Works like a charm.

Cheers.

0 Kudos