I am reaching out to seek assistance with a usage fault issue that I am facing while attempting to jump from a custom bootloader to an application on an NXP platform.
Error message:
UsageFault: The processor has attempted to execute an undefined instruction.
HardFault: A fault has been escalated to a hard fault.
Here are some key details regarding my setup:
Bootloader located at address: 0x00400000
Application located at address: 0x00500000
Function pointer address used for jumping to the application: ((0x00500800)+1) (VTABLE address) but faced usage fault which is leading to hardfault.
I have also tried jumping directly to the reset handler address [Reset handler address attempted: 0x00500c20], but the issue persists.
I would greatly appreciate any guidance or insights from the community on potential pitfalls or areas where I might be overlooking crucial details. If anyone has experience with a similar scenario or can provide troubleshooting advice, it would be immensely helpful.