generate hex

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

generate hex

跳至解决方案
794 次查看
saurabhkulkarni123
Contributor II

How can i generate .hex file in MBD for MPC5775B

0 项奖励
1 解答
785 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @saurabhkulkarni123 

 

The .hex file can be generated from the .elf file, the result of the build process.

To obtain the hex file directly from MATLAB you shall first locate the .elf file and then to apply the powerpc-eabivle-objcopy.exe on the elf file.

Let's take particular example, of the gpio_mpc574x file.

1. Open the gpio_mpc574x_mbd_rtw generated folder as "current folder" in MATLAB.

2. Run the following command in MATLAB's command window:

dos(fullfile(mbd_find_mpc_root, 'tools\S32DS\build_tools\powerpc-eabivle-4_9\bin\powerpc-eabivle-objcopy.exe -O ihex gpio_mpc574x.elf gpio_mpc574x.hex'));

mariuslucianand_1-1658475281205.png

Hope this helps,

Marius

在原帖中查看解决方案

标记 (1)
0 项奖励
5 回复数
748 次查看
saurabhkulkarni123
Contributor II

Hello @mariuslucianand , I'm trying to flash program to MPC5775B EVA board through CAN medium. but as .RBF file provided by you is for CAN0 channel only ,But in Rappid id Bootloader only CAN1,CAN2,CAN3 available. How I can use CAN0 in Rappid id bootloader.

also is it required to use only vector CAN hardware for rappidid bootloader ? or I can use peak CAN hardware?

0 项奖励
764 次查看
saurabhkulkarni123
Contributor II

how can I flash MBD code to MPC5775B Through CAN medium instead of UART. Please Suggest procedure.

0 项奖励
781 次查看
saurabhkulkarni123
Contributor II

ok thanks.. Now i'm trying to build MPC5777C RBF file into MPC5775B through s32ide but i'm getting flashing error like "Error during flash programming terminating debug session".  im using JTAG here for flashing.

 

0 项奖励
786 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @saurabhkulkarni123 

 

The .hex file can be generated from the .elf file, the result of the build process.

To obtain the hex file directly from MATLAB you shall first locate the .elf file and then to apply the powerpc-eabivle-objcopy.exe on the elf file.

Let's take particular example, of the gpio_mpc574x file.

1. Open the gpio_mpc574x_mbd_rtw generated folder as "current folder" in MATLAB.

2. Run the following command in MATLAB's command window:

dos(fullfile(mbd_find_mpc_root, 'tools\S32DS\build_tools\powerpc-eabivle-4_9\bin\powerpc-eabivle-objcopy.exe -O ihex gpio_mpc574x.elf gpio_mpc574x.hex'));

mariuslucianand_1-1658475281205.png

Hope this helps,

Marius

标记 (1)
0 项奖励
735 次查看
saurabhkulkarni123
Contributor II

Is it required to use VECTOR CAN hardware? Can I use PCAN hardware instead of that. Please suggest some procedure wise details for flashing MPC5775B EVA board via CAN medium.

0 项奖励