Bootloader of S32K118

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bootloader of S32K118

1,671 Views
zhaowei961
Contributor III

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

  /* Flash */
  m_interrupts          (RX)  : ORIGIN = 0x00000000, LENGTH = 0x000000C0
  m_flash_config        (RX)  : ORIGIN = 0x00000400, LENGTH = 0x00000010
  m_text                (RX)  : ORIGIN = 0x00000410, LENGTH = 0x00002000 /* Only 4 kB are allowed for the bootloader relaease and 6K for debug */
  /* SRAM_L */
  /* SRAM_U */
  m_data                (RW)  : ORIGIN = 0x20000000, LENGTH = 0x000030C0
  m_data_2              (RW)  : ORIGIN = 0x200030C0, LENGTH = 0x00002740
Labels (1)
0 Kudos
5 Replies

1,518 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

0 Kudos

1,518 Views
zhaowei961
Contributor III

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.

0 Kudos

1,518 Views
myna
Contributor III

Hello. zh ew

I have a same problem.

could you please share jump to app code?

Thank you.

best regards.

0 Kudos

1,518 Views
zhaowei961
Contributor III

I'm sorry.So later to reply.My code is as follows.I hope it can help you.1.png

If still have problem,tell me .

0 Kudos

1,518 Views
myna
Contributor III

Thank you!

0 Kudos