Hello and thanks in advance for your assistance.
Actually, I am trying to connect a P36S103, a Rotary DIP switch with 15 positions to 4 GPIO Inputs of my MCU.
At the beggining of my program, a LED is supposed to blink and informations are supposed to be exchanged via UART.
Usually the program works perfectly. But I have noticed that when the switch is on positions 2 - 3 - 6 - 7 - A (10) - B (11) - E (14) - F(15), the LEDs doesn't blink and the UART doesn't work.
I have noticed that all those positions used my PTB5 Input that is a NMI Input. I have tried many things to disable this NMI option but it still doesn't work. Do someone have an Idea ?
I am using MCUXpresso IDE v11.5.1_7266 and my Mcu is a mkl03z16vfk4.
I forgot to say that I am using a PE Multilink Universal to debug my program. When it is connected, the program works even with the positions 2 - 3 - 6 - 7 - A (10) - B (11) - E (14) - F(15) but as soon as I try to flash Program then disconnect it. I have the same problem as before, no LED and no UART
Can you check if you are able to disable the NMI functionality in the flash config of your device, similar to what is described in https://mcuoneclipse.com/2020/06/09/disabling-nmi-non-maskable-interrupt-pin/
?
I tried to use the code provided in the site but mcu is telling me that some of those mask aren't declared so I deleted those.
Now my program is working but the LEDs that are supposed to blink instantly work after a few seconds. I wonder if its normal ?
Thanks a lot for your help
The KL03Z has a ROM bootloader which runs first. Have you configured a timeout?
See https://mcuoneclipse.com/2017/07/12/getting-started-rom-bootloader-on-the-nxp-frdm-kl03z-board/
As for the FOPT: you need to check the bits of your device, just in case.
I hope this helps,
Erich