S32K3 FastStandby Wakeup Problem

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

S32K3 FastStandby Wakeup Problem

2,539 次查看
AmitoYao
Contributor II

a.png

Call function reset in faststandby's wake-up function will cause the variables assigned in this function to not take effect.

These variables are all defined in standbyram.

It seems that function reset in the faststandby wake-up function will restore the standbyram to the state before entering standby.

But this will not happen if you jump through bl reset_handler。

What is the problem?

0 项奖励
回复
13 回复数

2,480 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@AmitoYao

very interesting question.

After spending a long time, I finally found that you just need to add a delay to ensure that the command

has enough time to execute.

Senlent_1-1701850998348.png

 

 

0 项奖励
回复

2,477 次查看
AmitoYao
Contributor II

It's so strange. How could a simple assignment statement take so long? This results in longer wake-up times。

0 项奖励
回复

2,472 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@AmitoYao

This delay is just what I used for testing, not the minimum delay time.
But this should be the cause of the problem

0 项奖励
回复

2,469 次查看
AmitoYao
Contributor II

But why is there no such problem through jump "bl reset_handler" ? That is no delay time.

0 项奖励
回复

2,447 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@AmitoYao

It's difficult for me to explain the difference, it's beyond my capabilities.

0 项奖励
回复

2,434 次查看
AmitoYao
Contributor II

I tested this because after the standby wakes up, It will cause the WDI watchdog timeout problem using the fls driver to erase and program the dflash, but the function reset will not. Can you give feedback on this problem?

0 项奖励
回复

2,418 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@AmitoYao

"I tested this because after the standby wakes up, It will cause the WDI watchdog timeout problem using the fls driver to erase and program the dflash, but the function reset will not. Can you give feedback on this problem?"

Is this a new problem?
Isn't it okay to close SWT before entering standby mode or before performing memory operations?

0 项奖励
回复

2,413 次查看
AmitoYao
Contributor II

It is not the SWT. It is the wdog used for flash .

a.png

0 项奖励
回复

2,402 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@AmitoYao

more difficult to understand
You can sort out your problem, provide a demo program that can reproduce the problem (non-MCAL demos are best), and then send it to me, and I will upgrade it to the internal forum.

0 项奖励
回复

2,522 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@AmitoYao

I guess it's because the program will Init Standby SRAM after function reset

Senlent_1-1701767598761.png

 

 

0 项奖励
回复

2,505 次查看
AmitoYao
Contributor II

I didn't init the standby ram when function reset, the var modified in the main function didn't lose

.

0 项奖励
回复

2,502 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@AmitoYao

Could you please share the project so that i can reproduce your problem.

0 项奖励
回复

2,497 次查看
AmitoYao
Contributor II

Attached is my project.

0 项奖励
回复