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
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
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