Hello,
I'm writing a bootloader on micro S32K324.
To chatch the problem, I'm wrote a very simple bootloader and application.
The bootloader toggle slowly PDT5 pin and after that jump to application at address 0x00500000.
The application toggle PTD5 at main cycle (fast).
My problem it's that after jump to application there is no activity on PTD5 and the problem appear:
Break at address "0x502000" with no debug information available, or outside of program code.
Attached there is the bootloader S32K324_Boot_Test.zip and application S32K324_TOGGLE.zip.
To flash boot and application I have used settings Boot_And_App_Flash.png
Thanks for the support!
已解决! 转到解答。
Just remove this line:
func = (((uint32_t)func) & 0xFFFFFFFEU);
You are not supposed to do that. The LSB must be set to 1 to indicate Thumb mode which is required on Cortex-M cores. Then it should work.
Regards,
Lukas
Just remove this line:
func = (((uint32_t)func) & 0xFFFFFFFEU);
You are not supposed to do that. The LSB must be set to 1 to indicate Thumb mode which is required on Cortex-M cores. Then it should work.
Regards,
Lukas