cancel
Showing results for 
Search instead for 
Did you mean: 

flash resident bootloader

lizheng887
Associate II
Posted on April 26, 2016 at 11:30

hi st,

I want to program spc560p40 through flexcan, and on every start-up the program can be upgraded.

I plan to store the boot code into falsh sector 0, and application code into other sectors. However I am not clear how should I configure?

So, is there some example or descrition?

Thanks.

#bootloader
This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
3 REPLIES 3
lizheng887
Associate II
Posted on April 28, 2016 at 05:03

Hi,

anyone can help me? thanks.

Erwan YVIN
ST Employee
Posted on April 28, 2016 at 10:19

Hello Michael ,

you can use Chapter 33 in the RM046

you have to use Serial Boot (SBL) configuration by FlexCAN.

(Chapter 33.6)

            Best regards

                       Erwan

lizheng887
Associate II
Posted on April 28, 2016 at 12:51

Hi Erwan,

FAB and ABS pins have to be configured when using BAM, so I do not use BAM.

What I want to do is like this: in flash sector0, bootloader code is stored. when power on, bootloader code is executed to check if upgrade is needed, if yes, bootloader receives data from PC and store them in flash sector1, if no, bootloadr jumps to sector1 to execute the application code.

Now the bootloader project and application project are verified separately. But when I progam the app code into flash sector1 through bootloader,the app can not operate.

Do you have similar example or anything advice?

thanks.