I2C spuriously not working after NRST reset on STM32L4 requires reprogramming
Hello everbody,
I'm using the STM32L4KC Nucleo board. Accidentially I discovered something that I cannot understand so far.
I have a small application that is reading sensor data on I2C. So far everything works. When I cause by purpose some interrupts (using the button on that board) I realize that the application is not longer able to read from I2C. It simply stops after expecting a ACK from the sensor chip at the very first sensor reading (ID of the sensor). Further resets on NRST don't fix the problem. Physically disconnecting the sensor (therefore power off/on) don't fix the problem.
Power down/up the Nucelo board don't fix the problem. The only thing that reliably fix the problem is to reprogramm the STM32L4KC.
I saw something in the erata that says don't programm the flash durint power down. However, I'm not writing to the flash at all.
Even more strange to me is the dependency on the programming tool. The problem described above can be fixed reliable using STM32CubeIDE. It doesn't work if I use the SEGGER JFlashLite tool.
Anybody any idea?
Best Regards
Markus
