I use the Bootloader from the AN12218 example.
JumpToApplication function:
Hi, I got the same problem as you did. Do you solve the problem? Could you tell me how?
Hi,
can you please share more details? Are you using RappID bootloader, your custom bootloader, what kind of error/issue you can see?
Jiri
Hi,
from your screenshot it looks that you already jumped into application, but application ends in some exception. Is your app running as standalone (without bootloader)?
Jiri
Hi Jiri,
Can't I make app running as standalone ?
I don't know how to make my app running with bootloader. Can you tell me?Thanks.
xiaoping
Um, I don't get it. So, the first step is check, if the application is working without bootloader. It looks, that the issue is in the application itself, not in bootloader. If I'm correct - your app starts on 0xE000 - from screenshot you are already in the app - in loop on address 0xE46C. I'm assuming that this is loop where program ends if some exception occurs:
Jiri
Hi Jiri,
If i don't use bootloader jump to app,app is correct.Of course,app memory start from 0x0.
Now how to avoid this situation? Or how to configure my project make app running with bootloader after jump?
Thank you very much for your help.
xiaoping
Hi,
The issue may be caused by some peripheral already configured in Bootloader, clock settings, incorrect interrupt vector table (VTOR register - application vector table is on different location that boodloader's) or any other stuff. It's hard to say where may be issue. Try to debug your code. Select your app project in design studio. In debug configuration choose attach to target, set breakpoint to app entry point:
invoke reset and step by step try find out what's wrong:
Jiri
Hi,
I use J-Link Debug.
If App is hello_wold_s32k118 :
I speculate issue is in bootloader. Do you have example of bootloader using CAN ?
Thanks
Hi,
I'm afraid that there is no CAN bootloader example available.
Jiri