flash write and read/

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

flash write and read/

1,273 次查看
guochunhua
Contributor II

Dear sir/ms.

I have made a program in codewarrior 10.7,the cpu is mc56f84789. In PE, I have met two problems, they are follows.

1. I have added a flash module in my program,but I can not read or write the flash correctly, can you give me an example that how I read or write the flash? It is wonderful if you can give me a video.

2. I have added eFlexPWM module, there is a fault in my program when the PWM fault pin is high level. If there is a fault, sometimes enter the fault interrupt,sometimes does not enter the fault interrupt, how can I set the fault pin to enter the fault interrupt ? or which options can I set to enter the fault interrupt? can you give me an example? It is wonderful if you can give me a video.

Best regards.

chunhua guo

0 项奖励
回复
3 回复数

961 次查看
guochunhua
Contributor II

Hi Rong

Thank you for your help,regarding the flash writting/reading, I am sorry I can not find the code based on PE that you attached, can you attach it again?thank you very much.

BR

Chunhua Guo

0 项奖励
回复

961 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Chunhua,

I attach it here.

BR

Xiangjun Rong

0 项奖励
回复

961 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Guo,

Regarding the flash writting/reading, I have only the code based on PE, I attach it, hope it can help you.

Regarding the fault of eFlexPWM, the interrupt index 77 is the eFlexPWMA fault vector, the FLVL bits in PWMA_FCTRLn set the fault logic, the FIE bits set the faultx pin interrupt enable, the PWMA_FAULT bits in INTC_IPR8 set the interrupt priority.

Hope it can help you

BR

Xiangjun Rong