Bootloader can download the program to Flash, but the program is not started.What's the problem?Who can help me?Thank you very much.Bootloader is migrated from the S32 SDK demo.
App link file is
m_interrupts (RX) : ORIGIN = 0x00003000, LENGTH = 0x000000C0
m_flash_config (RX) : ORIGIN = 0x00003400, LENGTH = 0x00000010
m_text (RX) : ORIGIN = 0x00003410, LENGTH = 0x0002F800
/* SRAM_L */
m_custom (RW) : ORIGIN = 0x1FFFFC00, LENGTH = 0x00000400
/* SRAM_U */
m_data (RW) : ORIGIN = 0x20000000, LENGTH = 0x000030C0
m_data_2 (RW) : ORIGIN = 0x200030C0, LENGTH = 0x00002740
Bootloader link file
Hi,
there's no problem with the linker files.
Did you disable all interrupts before jump to user application? It's necessary to disable all interrupts globally and also disable all local enable bits. It's also good practice to put everything to default state before jump.
When you step the code, where does it fail exactly?
Regards,
Lukas
yes,I put everything into default state.finally I found when jumps to App,PC address has some problem.Now,it works.Thank you very much.
Hello. zh ew
I have a same problem.
could you please share jump to app code?
Thank you.
best regards.
I'm sorry.So later to reply.My code is as follows.I hope it can help you.
If still have problem,tell me .
Thank you!