s32k312 Writing dflash Indicates whether the pflash program interrupts running

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

s32k312 Writing dflash Indicates whether the pflash program interrupts running

ソリューションへジャンプ
702件の閲覧回数
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 解決策
671件の閲覧回数
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 返答(返信)
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 件の賞賛
返信
662件の閲覧回数
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 件の賞賛
返信
643件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

What version of the RTD drivers do you use?

 

Thanks,

Daniel

0 件の賞賛
返信
621件の閲覧回数
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 件の賞賛
返信