STM32F405 bootloader not responding in some boards
I'm testing a batch of 7 boards with an STM32F405RGT6. I'm trying to access the factory bootloader using an ESP32, which sets the boot0 pin to HIGH and RST to LOW and then sends the character 0x7F at 9600 bauds 8E1 (using pins PA09 and PA10). The procedure is successful for 4 out of 7 boards, as the STM32 effectively responds with ACK (0x79), and subsequent commands like Get are successfully tested. However, I'm encountering issues accessing the bootloader on the other 3 boards. This problem seems persistent as it consistently fails or succeeds with the same boards (they are identified). All these tested boards have the same hardware and are soldered with PCB assembly. All boards were tested with the same ESP32, since the board has pin headers for it.
Here's what I've tried so far:
- Verified board hardware: Checked visually for any damaged or poorly soldered components on the three problematic boards compared to the ones working correctly.
- Enter the bootloader 'manually': Using buttons to activate boot0 and RST and Realterm to send 0x7f with a USB-UART converter. I tested both a 'good' and a 'bad' board. Same result, only the 'good' one responded with ACK; the other one simply didn't respond.
- Tested with different baud rates: Although I'm currently using a baud rate of 9600, I've tried other speeds like 115200 to see if it makes any difference on the problematic boards.
- I also read this: https://community.st.com/t5/stm32-mcus-embedded-software/stm32f405rgt6-fails-to-enter-bootloader-sometimes/m-p/126995/ but it doesn't seem to be the problem.

