cancel
Showing results for 
Search instead for 
Did you mean: 

how can I put the boot function at the absolute address

wang mengmeng
Associate II
Posted on June 11, 2018 at 12:44

Hello everyone?

I have an issue with bootLoader development?I have debug the bootLoader successfully with SPC560P44, but I am not quite sure about how to jump to bootloader from the application program?

our conventional method is putting the boot function at  the absolute address?and we can jump to bootloader by call the function pointer?but in the SPC5Studio we don't know how to put the function at the absolute address?Can anyone know this ?Appreciate 

to receive your reply?

#bootloader
16 REPLIES 16
procolo
Senior
Posted on June 14, 2018 at 12:17

Hello,

could you try to update spc5studio to 5.8? in alternative you can change can_lld.c with the one attached (there is a new instruction in can_lld_stop).

Moreover, can you send the callstack window in UDE when IVOR occurs (views-->call stack window) and flexcan MCR register value (views->sfr view-> right click->browse)?

Thanks,

Procolo

________________

Attachments :

can_lld.c.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxTr&d=%2Fa%2F0X0000000ayt%2Fd6jtZarTfMk8in1vNq5vNkQopl2MTWRxCd1gf23Vt.I&asPdf=false
Posted on June 14, 2018 at 10:51

Hello procolo?

   Here are the pictures

1. Version of SPC5studio

 0690X0000060LFxQAM.png

2. ivor6 but sometimes it seems to enter ivor1 after jump

0690X0000060LGCQA2.png

3. can_lld_cfg.c files is in the attachment.

4. yes, I think its the same result.

Posted on June 14, 2018 at 11:03

Hello procolo,

I compared the can_lld_cfg between the projects, they are exactly the same,so I attach the code from one。

________________

Attachments :

can_lld_cfg.c.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxVD&d=%2Fa%2F0X0000000ayy%2F9z4aBktPpg.gYPJjl1Q4s7FxwL5sySkgEhOw11hh33w&asPdf=false
procolo
Senior
Posted on June 14, 2018 at 14:06

Hello,

the only way to understand the issue is to debug your code.

Could you please send me your apps and instructions?  I will debug on my side  

Posted on June 14, 2018 at 13:01

Hello procolo?

                  I will try the second scheme?here is my callstack and flexcan MCR register.0690X0000060LGHQA2.png

Thanks!

MMWang

Posted on June 14, 2018 at 13:13

Hello procolo:

   I have tried the can_lld_stop func from your attachment,but it has no effectï¼�

Posted on June 20, 2018 at 06:00

Hello procolo:

   so much thanks for your kindly help,my problem has been solved ,it was the IVORS didn't been initialized correctly after jump to the bootloader.

Best regards!

MM.WANG