Problem entering USART1 boot
We are using an STM32L151RE.
We have problem entering USART1 boot on some of the boards. We set RESET low, BOOT0 high, then set RESET high. Then we send 0x7F on USART1 and get 0x79 as reply (on the working boards). The non working boards does not reply to 0x7F.
BOOT1 is connected through 10kohm to ground.
All boards can be programmed through SWD, no problems there.
We have verified RESET and BOOT0 all the way to the MCU pins. And we can also see that the application reacts to RESET and BOOT0. The application runs only when BOOT0 is low and RESET is high (som that should be proof for functioning RESET and BOOT0).
This MCU can boot into bootloader from USART1 and USB (USART2 boot can't be done as this chip does not have the pin PD5 and PD6).
How can we troubleshoot this?
I have pinpointed where in the bootloader it goes wrong. The bootloader reads the USB_ISTR.
The value is 0x2000 on the faulty board and 0x0900 on the board that works.
It is the SUSP bit that is cleared on the faulty board. And I guess this makes the bootlaoder boot into DFU as it think there is something connected to the USB.

