2025-03-23 2:39 AM - edited 2025-03-23 2:41 AM
Hi there!
I've created a custom STM32F411CEU6 Board with external HSE und LSE. While the HSE works when running my user program, the Bootloader hangs within boot phase (i think).
When starting bootloader, BOOT0=1 und BOOT1=0. I powered direcly on VDD, no USB. I received no answer on both uarts after sending 0x7F. I also can't connect via stmcubeprogrammer. Only can only connect with stlinkv2.
I think it may be a hardware issue, but I can't find a solution.
Crystal 25Mhz: https://atta.szlcsc.com/upload/public/pdf/source/20240329/19D5F850207469550BEB00D7DFEDBC7A.pdf
LSE:
https://atta.szlcsc.com/upload/public/pdf/source/20240418/0E0FF5F0356BA3753F616001439D1416.pdf
Solved! Go to Solution.
2025-03-23 12:48 PM
Here are the two pin configurations listed in AN2606 as supported:
If you don't have PD5/PD6 on your chip, you can't use those, so PA9/PA10 are the only ones available for you.
> I've checked uart1: PA10 PA9 -> it works, bootloader starts!
Good! Shows things are working as expected.
> uart2: PA3, PA3 -> doesn't work
PA3 won't work as it isn't listed in AN2606.
2025-03-23 4:40 AM
Hi,
i cannot see SWD+SWC , for debug, or connect ; is it there ?
2025-03-23 6:50 AM - edited 2025-03-23 6:50 AM
After trying to launch the bootloader, you can then connect with STM32CubeProgrammer over SWD and example the PC register and confirm it's 0x1Fxxxxxx.
> I received no answer on both uarts after sending 0x7F.
Which UARTs and pins? It's not shown in your pictures. Are they listed as supported in AN2606?
Schematic seems workable. It has minor issues which I don't believe will cause issues for basic bootloader functionality:
2025-03-23 12:38 PM
thanks for all responses!
@AScha.3 SWD works and is connected.
I've checked uart1: PA10 PA9 -> it works, bootloader starts!
uart2: PA3, PA3 -> doesn't work
AN2606 writes Port "PD", but I havn't any PORT D ...
I can connect with SWD but cannot find any PC register. On which address? Or where can I find it in STM32CubeProgrammer?
find register log attached ...
2025-03-23 12:48 PM
Here are the two pin configurations listed in AN2606 as supported:
If you don't have PD5/PD6 on your chip, you can't use those, so PA9/PA10 are the only ones available for you.
> I've checked uart1: PA10 PA9 -> it works, bootloader starts!
Good! Shows things are working as expected.
> uart2: PA3, PA3 -> doesn't work
PA3 won't work as it isn't listed in AN2606.
2025-03-24 12:52 AM - edited 2025-03-24 4:34 AM
ok, thanks for clarifying!
However, it is still not clear to me why the USB boot does not work. I have installed all stm windows drivers. on the black pill board, the bootloader is displayed as “STM Bootloader” in the device manager as expected. on my custom board, “unknown usb device device descriptor request failed” is displayed
The bootloader works with uart. Are there any mistakes in the schematic? the HSI starts, but not the external ... are there any requirements I missed?
2025-03-24 12:13 PM
Any idea?
2025-03-24 2:01 PM
Does HSE start in a user program? If not that’s the issue. What observation makes you say that it doesnt start?
There are some comments in AN2606 about lower clock HSE such as 8 MHz being preferred.