how to flash MPC5748G.rbf to MPC5748G MCU

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

how to flash MPC5748G.rbf to MPC5748G MCU

131 Views
haiyang
Contributor III

hi, i have a DEVKIT-MPC5748G board,and i want to use the RAppID_BL,so i should flash the MPC5748G.rbf  to MCU before use this.

i try to use S32DS and OpenSDA to flash this rbf file, i creat a empty project,

haiyang_0-1714297537761.pnghaiyang_1-1714297601019.png

when i click Flash, it show some error: 

Connection from "127.0.0.1" via 127.0.0.1. Connection from port "26751" to 7224
Copyright 2018 P&E Microcomputer Systems,Inc.
Command Line :C:\NXP\S32DS_Power_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_2.0.2.202005132054\win32\pegdbserver_power_console -device=MPC5748G -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=OPENSDA -speed=5000 -port=USB1?
OpenSDA detected - Flash Version 1.09
Flash Data in range 0x00F8C000-0x00F8C01B.
Flash Data in range 0x00F8C020-0x00F8D671.
Flash Data in range 0x00F8D674-0x00F8E153.

CMD>RE

Initializing.

Device IDCODE is $00000081
Device ID revision is $00000000
Initializing Ram Block 0x40000000-0x40007FFF.
MPC574xC Device detected.
Target has been RESET and is active.
CMD>CM C:\NXP\S32DS_Power_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_2.0.2.202005132054\win32\gdi\P&E\nxp_mpc5748g_1x32x1520k_cflash.pcp

Initializing.

Device IDCODE is $00000081
Device ID revision is $00000000
Initializing Ram Block 0x40000000-0x40007FFF.
MPC574xC Device detected.

DOUBLE BUFFERING enabled.
Initialized.

;version 1.05, 06/26/2017, Copyright P&E Microcomputer Systems, www.pemicro.com [5748G_6080k]

;device NXP, MPC5748G, 1x32x1520k, desc=CFlash

;begin_cs device=$00F90000, length=$005F0000, ram=$40000000

Loading programming algorithm ...
Done.
Programming sequency is : erase, blank check, program, and verify {default}
CMD>VC
Verifying object file CRC-16 to device ranges ...
Error - no valid data in range of module.
Current content of flash does not match application to be programmed
CMD>EM

Erasing.
Module has been erased.
CMD>PM

Programming.
Processing Object File Data ...

No data to program.

.
Error during programming.
Error Programming flash of device
Error occured during Flash programming.

Device IDCODE is $00000081
Device ID revision is $00000000

Device IDCODE is $00000081
Device ID revision is $00000000

Starting reset script (C:\NXP\S32DS_Power_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_2.0.2.202005132054\win32\gdi\P&E\s32e200_mpc574xg.mac) ...
REM This script is compatible with MPC574xG devices.
REM Clean GPRs to remove residual data after using algorithm
REM Initialize all of the Main SRAM - 768KB
Initializing RAM from $40000000 to $400BFFFF.
Initializing Ram Block 0x40000000-0x400BFFFF.

Reset script (C:\NXP\S32DS_Power_v2.1\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_2.0.2.202005132054\win32\gdi\P&E\s32e200_mpc574xg.mac) completed.

MPC574xG Device detected.

PEmicro GDB Launch Failure : Error during flash programming. Terminating debug session.

 

then i try to use the PROGPPCNEXUS ,

haiyang_2-1714297687090.png

but,i don't know which pcp file i should select, and i remember the PROGPPCNEXUS  only can 

flash the .HEX and .S19 and .ELF  file.

can you tell me how to  flash the MPC5748G.rbf to MCU?

haiyang

Tags (1)
0 Kudos
4 Replies

89 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi,

.rbf file should be ordinary S-record. Choose ...CFLASH.pcp algorithm.

 

Pay attention to following thread:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/RAppID-Bootloader-rbf-file-for-MPC5777...

 

0 Kudos

42 Views
haiyang
Contributor III

hi,

thank you reply.

I try your suggestion, i select the nxp_mpc5748g_1x32x1520k_cflash.pcp in PROGPPCNEXUS .

haiyang_0-1715245078883.png

haiyang_1-1715245115490.png

I place the MPC5748G.rbf in this folder,then copy and change the extension to MPC5748G_rbf.S19

haiyang_2-1715245123631.png

when i click File->Specify Object File to Load ,it only can choice .S19,can't select .rbf file.

haiyang_3-1715245144454.png

If i force the .S19 file ,it show me the file address not in range or module.

haiyang_4-1715245151530.png

if i click yes ,it will show some error,because the MPC5748G.rbf file start address is 0x00F8C000.

 

 

Then ,i reference the link :

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/RAppID-Bootloader-rbf-file-for-MPC5777...

haiyang_5-1715245709886.png

His chip is MPC5777C ,he use the nxp_mpc5777c_1x32x2048k_cflash_highspeed.pcp ,

but my chip is MPC5748G, this mcu has no file like this.

So, i still can't flash the MPC5748G.rbf to the mcu.

 

 

0 Kudos

20 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

These files can be found here:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/RAppID-Bootloader-custom-rbf-files/ta-...

As it is S-record, you could rename the file to .srec or .mot and programmed should accept it.

0 Kudos

14 Views
haiyang
Contributor III

hi,

I had rename the MPC5748G.rbf to MPC5748G.mot, but is still show an error ,address range error

haiyang_0-1715341524480.png

 

0 Kudos