2401982_en-US

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

2401982_en-US

2401982_en-US

S32K3 fast standby wake up fail

Hello,

In a Fast Standby example project, I defined an array arr in the .standby_data section, but this array is not used anywhere in the code. However, if I comment out this array definition, the device fails to wake up from Fast Standby; if I keep it, wake‑up works as expected. Moreover, I noticed that the optimization level also affects the behavior: with -O0 optimization, wake‑up fails, but changing to -Os makes it work. Why does defining a variable in the .standby_data section affect the wake‑up functionality? And why does the optimization level have such an impact?

Jason22_0-1785895168596.png


S32K312 RTD400 S32DS

BR,

Jason

Re: S32K3 fast standby wake up failHi@Senlent
Thank you very much for your reply. After changing the address to 0x20408000, the previously failing cases are now working properly.

By the way, regarding my other thread (S32K3 ADC Optimize DMA Streaming), I replied to you using the new account(Jason07) registered with the company email – I forgot to switch accounts when replying.
Re: S32K3 fast standby wake up fail

Hi@Jason22

Whether you comment out the "arr" array in your program affects the value of __BSS_SRAM_START, which will be used as the initial value of the MSP after a fast wake-up.

If this value is too small, it can cause a stack overflow.

In our example project, we recommend setting this value to 0x20408000, which is the end address of the standby RAM.



タグ(1)
評価なし
バージョン履歴
最終更新日:
1週間前
更新者: