Bootloader of S32K118

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bootloader of S32K118

2,438件の閲覧回数
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
ラベル(1)
0 件の賞賛
返信
5 返答(返信)

2,285件の閲覧回数
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 件の賞賛
返信

2,285件の閲覧回数
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 件の賞賛
返信

2,285件の閲覧回数
myna
Contributor III

Hello. zh ew

I have a same problem.

could you please share jump to app code?

Thank you.

best regards.

0 件の賞賛
返信

2,285件の閲覧回数
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 件の賞賛
返信

2,285件の閲覧回数
myna
Contributor III

Thank you!

0 件の賞賛
返信