generate hex

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,189件の閲覧回数
saurabhkulkarni123
Contributor II

How can i generate .hex file in MBD for MPC5775B

0 件の賞賛
返信
1 解決策
2,180件の閲覧回数
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 返答(返信)
2,143件の閲覧回数
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 件の賞賛
返信
2,159件の閲覧回数
saurabhkulkarni123
Contributor II

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

0 件の賞賛
返信
2,176件の閲覧回数
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 件の賞賛
返信
2,181件の閲覧回数
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 件の賞賛
返信
2,130件の閲覧回数
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 件の賞賛
返信