S32K344 Flash operation and interrupt

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

S32K344 Flash operation and interrupt

跳至解决方案
981 次查看
KWay4329
Contributor I

Hello,I have question about When DFlash/PFlash is doing the write or erase operation,all interrupts must be disabled for awhile?

For example,disable all interrupts before C40_Ip_MainInterfaceSectorErase() or C40_Ip_MainInterfaceWrite(),then enable all interrupts when operation is done.

Is there have any problem if the all interrupt is not disabled?

0 项奖励
回复
1 解答
949 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

If code is being executed from different flash module than programmed (RWW) then interrupts can be handled during flash programming otherwise it is needed to disable interrupt before flash programming/erasing to prevent RWW error.

在原帖中查看解决方案

0 项奖励
回复
1 回复
950 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

If code is being executed from different flash module than programmed (RWW) then interrupts can be handled during flash programming otherwise it is needed to disable interrupt before flash programming/erasing to prevent RWW error.

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1905879%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K344%20Flash%E6%93%8D%E4%BD%9C%E5%92%8C%E4%B8%AD%E6%96%AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1905879%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%82%A8%E5%A5%BD%EF%BC%8C%E6%88%91%E6%9C%89%E4%B8%80%E4%B8%AA%E9%97%AE%E9%A2%98%EF%BC%8C%E5%BD%93%20DFlash%2FPFlash%20%E6%89%A7%E8%A1%8C%E5%86%99%E5%85%A5%E6%88%96%E6%93%A6%E9%99%A4%E6%93%8D%E4%BD%9C%E6%97%B6%EF%BC%8C%E6%89%80%E6%9C%89%E4%B8%AD%E6%96%AD%E9%83%BD%E5%BF%85%E9%A1%BB%E6%9A%82%E6%97%B6%E7%A6%81%E7%94%A8%EF%BC%9F%3C%2FP%3E%3CP%3E%E4%BE%8B%E5%A6%82%EF%BC%8C%E5%9C%A8%20C40_Ip_MainInterfaceSectorErase()%20%E6%88%96%20C40_Ip_MainInterfaceWrite()%20%E4%B9%8B%E5%89%8D%E7%A6%81%E7%94%A8%E6%89%80%E6%9C%89%E4%B8%AD%E6%96%AD%EF%BC%8C%E7%84%B6%E5%90%8E%E5%9C%A8%E6%93%8D%E4%BD%9C%E5%AE%8C%E6%88%90%E6%97%B6%E5%90%AF%E7%94%A8%E6%89%80%E6%9C%89%E4%B8%AD%E6%96%AD%E3%80%82%3C%2FP%3E%3CP%3E%E5%A6%82%E6%9E%9C%E6%B2%A1%E6%9C%89%E7%A6%81%E7%94%A8%E6%89%80%E6%9C%89%E4%B8%AD%E6%96%AD%EF%BC%8C%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%E9%97%AE%E9%A2%98%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1908844%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AS32K344%20Flash%E6%93%8D%E4%BD%9C%E5%92%8C%E4%B8%AD%E6%96%AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1908844%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%A6%82%E6%9E%9C%E4%BB%A3%E7%A0%81%E6%98%AF%E4%BB%8E%E4%B8%8E%E7%BC%96%E7%A8%8B%EF%BC%88RWW%EF%BC%89%E4%B8%8D%E5%90%8C%E7%9A%84%E9%97%AA%E5%AD%98%E6%A8%A1%E5%9D%97%E6%89%A7%E8%A1%8C%E7%9A%84%EF%BC%8C%E5%88%99%E5%8F%AF%E4%BB%A5%E5%9C%A8%E9%97%AA%E5%AD%98%E7%BC%96%E7%A8%8B%E6%9C%9F%E9%97%B4%E5%A4%84%E7%90%86%E4%B8%AD%E6%96%AD%EF%BC%8C%E5%90%A6%E5%88%99%E9%9C%80%E8%A6%81%E5%9C%A8%E9%97%AA%E5%AD%98%E7%BC%96%E7%A8%8B%2F%E6%93%A6%E9%99%A4%E4%B9%8B%E5%89%8D%E7%A6%81%E7%94%A8%E4%B8%AD%E6%96%AD%E4%BB%A5%E9%98%B2%E6%AD%A2%E5%87%BA%E7%8E%B0%20RWW%20%E9%94%99%E8%AF%AF%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E