Is there support for IAP in MPC5645S ?

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

Is there support for IAP in MPC5645S ?

2,058 Views
abhiram_d
Contributor I

Please help on how to do In Application Programming in MPC5645S.

Tags (2)
0 Kudos
Reply
6 Replies

1,810 Views
dhanaraj_d
Contributor II

Any update to this will be helpful for us in removing our blocks.

Thanks in advance.

0 Kudos
Reply

1,925 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Abhiram,

there are two options: you can use Boot Assist Module (BAM) to load a code to RAM via UART or CAN (the code needs to be developed by yourself) and this code then can load new firmware via the same interface and program it to the flash memory. Disadvantage of this solution is that serial boot mode must be activated by hardware configuration - by changing of FAB pin during reset. We have this application note:

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

Second option (I think this is better one) is flash resident bootloader which provides more possibilities.

I shared a draft of application note here on the community:

https://community.nxp.com/servlet/JiveServlet/download/427962-1-279359/bootloader.zip

It’s written for MPC5634M, software is working. It can be re-used also for MPC5645S (but porting is necessary).

 

Just in case, this is updated and published version for MPC57xx devices (software is written for MPC5748G):

http://www.nxp.com/assets/documents/data/en/application-notes/AN5319.pdf

http://www.nxp.com/assets/documents/data/en/application-notes-software/AN5319SW.zip

We have also Rappid bootloader but unfortunately it does not support MPC5645S:

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

Regards,

Lukas

0 Kudos
Reply

1,925 Views
sreedevi_mohan
Contributor III

Hi Lukas,

>> Can you please provide the porting guide for the second option? 

>> We understood that the example boot loader is done in CW 2.x series from the doc "How to write flash resident bootloader for MPC55xx/56xx". Can we port the bootloader in CW 10.x series?

0 Kudos
Reply

1,925 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Sreedevi,

MPC5645S has different flash, so you need to use different drivers (but the API is still compatible):

https://www.nxp.com/webapp/Download?colCode=C90FL_SM_SSD_DEVD 

And there's LINFlex module instead of eSCI module. So, the communication functions need to be changed. You can re-use code from AN5319 because there's LINFlex module too on MPC5748G. The main difference is that there's no interrupt for 'transmit buffer empty' in LINFlex module, so the flow is handled in slightly different way.

It doesn't matter which IDE is used. Just create new project in your IDE, change the linker file as described and then copy the code step by step to the new project with appropriate changes.

Regards,

Lukas

0 Kudos
Reply

1,829 Views
dhanaraj_d
Contributor II

Hi Lukas,

Application note(https://www.nxp.com/docs/en/application-note/AN4674.pdf) for option-1 using BAM programming having GHS IDE examples. Can i get same for code warrior example that how to generate image output(memory image file) for programming.

Also can you please provide us host machine application like eSL for uploading image file through Linflex in MPC5645S.

0 Kudos
Reply

1,803 Views
dhanaraj_d
Contributor II

@lukaszadrapa, Any update for the two queries regarding option-1?

0 Kudos
Reply