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"
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.
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"
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.