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 userApplication 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 siteTo 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.