2018-06-11 03:44 AM
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?#bootloaderSolved! Go to Solution.
2018-06-14 03:17 AM
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=false2018-06-14 03:51 AM
Hello procolo?
Here are the pictures
1. Version of SPC5studio
2. ivor6 but sometimes it seems to enter ivor1 after jump
3. can_lld_cfg.c files is in the attachment.
4. yes, I think its the same result.
2018-06-14 04:03 AM
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=false2018-06-14 05:06 AM
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
2018-06-14 06:01 AM
Hello procolo?
I will try the second scheme?here is my callstack and flexcan MCR register.
Thanks!
MMWang
2018-06-14 06:13 AM
Hello procolo:
I have tried the can_lld_stop func from your attachment,but it has no effect�
2018-06-19 11:00 PM
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