SPC5634M CNA online debugging programming demo code or application programming method

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

SPC5634M CNA online debugging programming demo code or application programming method

863 Views
jack_li
Contributor I

We adopt proide MPC5634M chips and MPC5643L, before the upgrade way too trival, want to change for IAP upgrade through CAN bus. (In Application Programming)

 


The current plan is: the underlying bootloader + upper user program + PC computer, electricity run bootloader that waiting for 500 ms, if not received

CAN upgrade message, then jump into the user program;To upgrade the CAN message if received, erasing the user program, and will receive the new program written to the user
Application area, after the completion of the upgrade to jump to the new user and run the program.Bootloader via a serial port to the corresponding area in factory, the user can be in the factory or site
To upgrade online.

 


Because the two layers of structure need different interrupt to scale, we don't know how to define, so the program always crash when to jump.
Now hope to get your help, can offer some Suggestions in view of the present scheme, or to provide your company's reference.
Thank you very much.
Labels (1)
0 Kudos
Reply
1 Reply

765 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

you can take a look at this draft of application note written for MPC5634M:

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

It describes basic principles how to write bootloader and user application.

This is updated version for MPC5748G:

http://www.nxp.com/files/microcontrollers/doc/app_note/AN5319.pdf

http://www.nxp.com/files/microcontrollers/doc/app_note/AN5319SW.zip

If you jump from bootloader to user application and the interrupts are already initialized/enabled, it is important to disable them before jump. I have described it here:

https://community.nxp.com/message/807376?commentID=807376#comment-807376 

or here:

https://community.nxp.com/message/605376?commentID=605376#comment-605376 

Regards,

Lukas

0 Kudos
Reply