MC56F82748 Internal Flash configuration problem

取消
显示结果 
搜索替代 
您的意思是: 
已解决

MC56F82748 Internal Flash configuration problem

跳至解决方案
633 次查看
terrybogard
Contributor II

Dear NXP expert,

I found if i set the WAIT IN RAM --Yes. my program will run out of control if I declare an array[64], but is declare an array[32] is OK. and I set WAIT IN RAM --No. the program will run well. Can you give me some explain? my opinion is the stack overflow. And any suggestion about WAIT IN RAM item will be welcome.

Thanks.

 

Screenshot 2021-12-03 162121.png

0 项奖励
1 解答
620 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

As the following figure and the "WAIT IN RAM" explanation, if you select "WAIT IN RAM" as Yes, it is in polling mode, in other words, the function polls the flash status register and checks if the flash operation is complete.

If you select "WAIT IN RAM" as No, it is in interrupt mode, in other words, after the flash operation is over, an flash interrupt is triggered, and the ISR will be executed, in the ISR, the flash status variable is updated. The advantage of the method is that you can execute the other function while the flash is operated.

Hope  it can help you

BR

XiangJun Rong

xiangjun_rong_0-1638774461646.png

 

在原帖中查看解决方案

0 项奖励
2 回复数
631 次查看
terrybogard
Contributor II

when I set the WAIT IN RAM --No, the data write into internal Flash is wrong.

0 项奖励
621 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

As the following figure and the "WAIT IN RAM" explanation, if you select "WAIT IN RAM" as Yes, it is in polling mode, in other words, the function polls the flash status register and checks if the flash operation is complete.

If you select "WAIT IN RAM" as No, it is in interrupt mode, in other words, after the flash operation is over, an flash interrupt is triggered, and the ISR will be executed, in the ISR, the flash status variable is updated. The advantage of the method is that you can execute the other function while the flash is operated.

Hope  it can help you

BR

XiangJun Rong

xiangjun_rong_0-1638774461646.png

 

0 项奖励