Flashing mode changing

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

Flashing mode changing

1,340 Views
saurabhkulkarni123
Contributor II

Hello,

Can we change flashing mode of MPC5775B board with CAN medium. If yes, then what are the requirements for that.

0 Kudos
Reply
9 Replies

1,269 Views
saurabhkulkarni123
Contributor II

 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".  I'm using JTAG here for flashing.

0 Kudos
Reply

1,179 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

1,306 Views
saurabhkulkarni123
Contributor II

ok but i'm using matlab  and i want to run application using matlab(MBD). so how can i generate hex file in matlab

0 Kudos
Reply

1,297 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

It was already discussed here:

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-create-bin-hex-s19-file-using-th...

If it does not answer your questions, please use this community space:

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/bd-p/mbdt

Thanks,

Lukas

0 Kudos
Reply

1,315 Views
saurabhkulkarni123
Contributor II

ok, correct me if i'm wrong. 1) I have to load RBF file to MPC5775B board via JTAG . 2) after loading RBF then I use CAN communication for flashing .elf file via RAppid bootloader.

is it correct way?

 

0 Kudos
Reply

1,308 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Yes, that's correct. It just does not support elf files but rather s-record files or hex files. Here you can find how to generate such file in S32 Design Studio:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Generate-S-Record-Intel-HEX-Bina...

Regards,

Lukas

0 Kudos
Reply

1,324 Views
saurabhkulkarni123
Contributor II

Can i use RBF file of MPC5777C  for MPC5775B board.

 

0 Kudos
Reply

1,318 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Yes, the devices are compatible.

0 Kudos
Reply

1,327 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

I just answered similar question from your company via ticket. Let me copy the answer here:

***

There are more options how to implement a bootloader on this device.

If you want to use serial boot mode (using BAM module), there are two ways how to switch to serial boot mode:

  1. Change BOOTCFG pins as needed. The pins are latched during reset. So, you need to have an option to change this state by hardware (jumpers, pushbutton or whatever).
  2. Second option is to change the mode by DCF record. See “5.7.1 UTEST Miscellaneous DCF client” in the reference manual for more details.

 

However, it’s not very common solution to use this serial boot mode. Absolute majority of our customers use rather flash resident bootloader.

We provide Rappid bootloader which can use either UART or CAN. At the beginning, it’s necessary to load RBF file to flash via JTAG. Notice that we do not provide source codes, it cannot be modified:

https://www.nxp.com/webapp/Download?colCode=RAPPID_BOOTLOADER_UTILITY&appType=license

Some custom RBF files can be downloaded here:

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

 

Then we provide application note AN5319 which describes how to develop simple serial bootloader. SW example is included. It’s written for MPC5748G but it’s supposed to be starting point for all MPC57xx devices:

https://www.nxp.com/docs/en/application-note/AN5319.pdf

https://www.nxp.com/docs/en/application-note-software/AN5319SW.zip

 

If you are looking for out of box solution, you can ask Vector (or other SW vendors) for help:

https://www.vector.com/int/en/products/products-a-z/embedded-components/flash-bootloader#

 

Regards,

Lukas

0 Kudos
Reply