Bootloader Code Failing in D-Flash Region on S32K118

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Bootloader Code Failing in D-Flash Region on S32K118

1,149 次查看
Arunpk
Contributor II

Hi Team,

I'm facing an issue while running the bootloader code from the D-Flash region on the S32K118. When I run the code, it unexpectedly jumps to the DefaultISR, and I’m unable to identify the root cause.

The same code works fine when the linker script is configured to run from P-Flash, so the issue seems specific to executing from D-Flash.

Here are some observations:

  • While waiting for data via UART (using blocking mode with 0xFFFFFFFF timeout or polling), the code proceeds to the next step even if no data is received from the host (I confirmed this by testing without any physical UART connection).

  • I suspect this could be contributing to the problem, but even when UART functionality is disabled, the code still enters DefaultISR.

  • Occasionally, the system crashes when trying to write new firmware into P-Flash.

  • Debugging is also difficult as I’m using -O1 optimization, which might be causing the debug view to behave unpredictably. when I try with -O0 also it jumps to DefaultISR.

This is a high-priority issue, and I would appreciate your help in identifying possible causes and providing a solution at the earliest.

Thank you.

标记 (1)
0 项奖励
回复
3 回复数

1,127 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Arunpk

Please provide your project that can reproduce the problem.

And i will take some time to help you troubleshoot the root cause.

 

0 项奖励
回复

1,113 次查看
Arunpk
Contributor II
Please share your email ID so I can send the project.
0 项奖励
回复

1,112 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Arunpk

You can send me a private message, or reply to me directly in your another case 00706554.

0 项奖励
回复