Hi NXP,
We are using KEAZ128, I create a simple DS project just to light up LED, it is working normally after loading is completed, but when I power down and power up the board again, the LED won't light up again. i.e. it seems programmes didn't flash inside the flash. I have attached my project code, can you advice what could be wrong with my project setting please?
Solved! Go to Solution.
Hello
To disable the NMI you can do it through the NMIE field from the SIM_SOPT0 register. To use it as gpio please make sure to keep the pin high during the reset.
The NMI pin will still be the NMI function when you power on the chip even you already disable it, so, it's better to keep the NMI pin high during power on.
Let me know if this is helpful, if you have more questions do not hesitate to ask me.
Best regards,
Omar
Hello
Hope you are well. When you load the code I suggest you do it through this configuration.
Let me know if this is helpful, if you have more questions do not hesitate to ask me.
Best regards,
Omar
Hello
Can you share me in detail the debug configurations you are using? Specifically the debugger and startup tabs.
I did the test with the code you provided, only changed the pins in order to match with the Leds on my board; and the code was executed after I powered on the board.
I'm looking forward to your reply.
Best regards,
Omar
Thank you very much for your help !
It works normally now, and I think it can not work after power on because of the NMI port.
So if I want to use the NMI port as a gpio port, should I define the ISR of NMI port at first ?
Hello
To disable the NMI you can do it through the NMIE field from the SIM_SOPT0 register. To use it as gpio please make sure to keep the pin high during the reset.
The NMI pin will still be the NMI function when you power on the chip even you already disable it, so, it's better to keep the NMI pin high during power on.
Let me know if this is helpful, if you have more questions do not hesitate to ask me.
Best regards,
Omar
Get it, thank you !
Btw, the IDE is S32DS.