iMXRT: HEX Generation from MBDT

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

iMXRT: HEX Generation from MBDT

ソリューションへジャンプ
1,061件の閲覧回数
Sam_ECU
Contributor V

Hello @stefancinipeanu 

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

 

Thanks,

Sam

タグ(2)
0 件の賞賛
1 解決策
1,043件の閲覧回数
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,044件の閲覧回数
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,025件の閲覧回数
Sam_ECU
Contributor V

Hello @stefancinipeanu 

Works like a charm.

Cheers.

0 件の賞賛