2025-06-23 10:59 PM
We are using the STM32L071KZU6 in one of our designs and are facing an issue with bootloader communication over I2C. Specifically, some boards fail to enter the bootloader or respond on the I2C bus, while others function normally. Below are the details of our observations:
All other electrical and mechanical aspects (including pull-ups on I2C, supply stability, and reset timing) have been reviewed and appear nominal.
We would appreciate your assistance in identifying possible causes or further debugging steps for this inconsistent behavior with the bootloader over I2C.
Thanks and Best Regards,
Jagannathan R
2025-06-23 11:49 PM
I don't have any specific experience with the STM32L071, to put that upfront.
But you are speaking about the ROM bootloader code here, implemented by ST.
I'm pretty sure they will not publish the source code here, and point you to the documentation and respective ANs instead.
I would try the following things:
- repeat the attempts to send the initial ID value to get into the BL
- vary the timing before starting the communication
- try a reset (via nRST) after a failed attempt, and retry
I have experienced a few surprises when dealing with sparsely documented ROM bootloaders of other (proprietary) architectures.