nrf5340 GPIO not toggling until we do a complete chip power ON OFF

Was trying I2C on GPIO 1.0 & GPIO1.2.

The code worked fine yesterday and today modified few thing and the SDA pin (P1.0) was not toggling at all.

Later tried to make it as normal GPIO Output and tried to toggle it but only SCL pin (P1.2) was toggling but P1.0 was not toggling.

This is not the DK board but an nrf5340 MODULE with complete pinout available for user.

I tried to erase it all using nrfjprog --eraseall and --recover and all was successful but after loading the code only P1.2 was toggling but not P1.0.

I thought the module is not soldered properly or some connection issue.

After troubleshooting for hours, I removed the complete power supply to the module and connected again back.

Then I observed that the pin which was not toggling is toggling and then made it again as I2C and the I2C started working fine without any issue!

So my question is, what is creating such issues? A chip reset or PIN reset should recover what ever issues like this, but why it is not happening in case of NRF5340 ?

This is scary coz we cannot power cycle the IC in a product always if there is no physical power disconnection to the nrf5340.

Parents Reply Children
No Data
Related