cancel
Showing results for 
Search instead for 
Did you mean: 

Code upload using Bootloader via CAN on SPC582B60E1 microcontroller

VAAgashe
Associate

I have completed implementing the Bootloader code in the SPC582B60E1 microcontroller.
But for test cases, when the first code is succesfully uploaded via CAN and when I upload the second code, and if there is any connection error, and the communication breaks, the previous code is completely erased. What need to be done to retain the previous code for in the controller memory as for a backup plan?
Please guide.

1 REPLY 1
Erwan YVIN
ST Employee

Hello 

i recommend to the RM0403 based on your device

https://www.st.com/resource/en/reference_manual/rm0403-spc58-2b-line--32-bit-power-architecture-automotive-mcu-z2-core-80-mhz-1-mbyte-flash-asilb-stmicroelectronics.pdf

According the chapter 8.3.13

BAF Bootloader
The BAF code includes a way to upload via CAN or UART some code into the system RAM
and execute it. The possibility to execute the Bootloader is conditioned by the Life Cycle
status, which regulates what can or cannot be done according to the stage of the microcontroller

Do not hesitate to check the application 

SPC582Bxx_RLA Bootloader Test Application for Discovery

                            Best Regards

                                              Erwan