MPC5748G firmware update by Ethernet or SD card interface

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

MPC5748G firmware update by Ethernet or SD card interface

267 Views
SJ
Contributor I

 

I have an MPC5748G application that uses Ethernet and SD card interfaces, and it's working fine.

Currently, firmware is updated by flashing (.elf) files with the PE Debugger.

However, remote upgrades such as OTA are required.

I'm considering the scenario of downloading the elf firmware file from the server via Ethernet and flashing it, or saving it to an SD card and updating it.

Is this really possible? Are there any examples I can refer to?

 

0 Kudos
1 Reply

259 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @SJ 

 

Yes, this can be achieved. But instead of elf file, common approach is to use s-record file. If you use S32 Design Studio, the generation of s-record file can be enabled like this:

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

 

We provide application note AN5319 which describes how to develop simple serial bootloader. SW example is included.

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

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

 

You can re-use some code to do the update via Ethernet or SD card. I just recommend to always align the s-record file in advance as mentioned in the application note. It makes the life much easier. There’s either srecconv utility in the package or you can use tools like srec_cat:

https://srecord.sourceforge.net/

https://srecord.sourceforge.net/man/man1/srec_cat.1.html

 

Regards,

Lukas

0 Kudos