s32k312 Writing dflash Indicates whether the pflash program interrupts running

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

s32k312 Writing dflash Indicates whether the pflash program interrupts running

Jump to solution
301 Views
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 Kudos
1 Solution
270 Views
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

View solution in original post

0 Kudos
4 Replies
271 Views
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 Kudos
261 Views
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 Kudos
242 Views
danielmartynek
NXP TechSupport
NXP TechSupport

What version of the RTD drivers do you use?

 

Thanks,

Daniel

0 Kudos
220 Views
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 Kudos