Hello NXP team,
I find a hard reset issue when I use the MK22FX512AVMC12 microcontroller:
Step1. When I use a 50us period square wave (low period=10%, high period=90%) to hard reset the MCU, MCU will most likely enter a reset status or some low-power mode and cannot jump out from this reset status. At the same times, the Reset—B level is always kept low (0.1V).
The MCU needs to be powered on and off to restored to normal. After powering on and off, Reset-B is a normal high level, and K22FX512 can work normally.
During this continuous hard reset test, sometimes JLINK failed to connect to K22FX512. Once K22FX512 successfully connected to JLINK, the MCU flash data I read all became 0xFF. Therefore, I had to reprogram K22FX512 MCU.
Step2.When I increased the reset wave to a period of 1ms ,10ms even longer, the phenomenon in step 1 disappeared.
What I did:
- No MCU power supply issues were found.
- Check the MCU specifications, the reset pulse low period should be greater than 100ns.
- The Reset-B Pin is pulled up to 3.3V via a 4.7k resistor without a capacitance to ground. So I added a 0.1uF capacitor between the Reset-B pin and ground, forming an RC filter. But it didn’t work, the issue in step1 still exists.
- The Reset Pin Control Register (RCM_RPFC) is enabled but has no effect.
- The NMI Pin(J8) is floating. I tried to disable the NMI function[NMI_DIS=0] ,it still doesn’t work.
My question:
- Is the phenomenon in step 1 normal? If not, could you share some methods to help me solve this issue?
- Could you explain why the flash data goes to 0xFF after such hard reset?