Bootloader Code Failing in D-Flash Region on S32K118

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

Bootloader Code Failing in D-Flash Region on S32K118

1,090 Views
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.

Tags (1)
0 Kudos
Reply
3 Replies

1,068 Views
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 Kudos
Reply

1,054 Views
Arunpk
Contributor II
Please share your email ID so I can send the project.
0 Kudos
Reply

1,053 Views
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 Kudos
Reply