s32k312 Writing dflash Indicates whether the pflash program interrupts running

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

s32k312 Writing dflash Indicates whether the pflash program interrupts running

跳至解决方案
703 次查看
Neo1096
Contributor I

When I use S32K312 chip pflash storage program, dflash as storage data, that when I run the program, including a 10us interrupt program, then I write data to dflash in the main loop will affect the interrupt response? What if it does? Do you need to map interrupts to ram?
Looking forward to hearing from you. Thank you

0 项奖励
回复
1 解答
672 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Neo1096,

DFlash and PFlash are two separate blocks.

The program can run from PFlash, which can include the vector table and ISRs, while the DFlash is being programmed.

The ISRs must not access data in DFlash though.

 

Regards,

Daniel

在原帖中查看解决方案

0 项奖励
回复
4 回复数
673 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Neo1096,

DFlash and PFlash are two separate blocks.

The program can run from PFlash, which can include the vector table and ISRs, while the DFlash is being programmed.

The ISRs must not access data in DFlash though.

 

Regards,

Daniel

0 项奖励
回复
663 次查看
WenWenDar
Contributor II

hi, I enable an interrupt of 100us per cycle. Then I erase one sector of data flash. 

I called an API function called "C40_Ip_MainInterfaceSectorErase"  to erase data flash

During erasure, interrupts cannot be responded to.

After erasure, interrupts can be responded to normally.

So, how to achieve the goal to enter interrupts while erasing data flash?

Looking forward to your reply

0 项奖励
回复
644 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

What version of the RTD drivers do you use?

 

Thanks,

Daniel

0 项奖励
回复
622 次查看
WenWenDar
Contributor II

hi, I used RTD 1.0.0.  And this question has been solved. The solution can be found in the following link.

https://community.nxp.com/t5/S32K/During-the-process-of-writing-dflash-if-an-interrupt-occurs-will/m...

0 项奖励
回复