2024-10-21 01:00 PM
I am working on a board containing two STM32F412, and I am having a hard time reaching the DFU bootloader:
The schematic is illustrated below:
The reset and boot pin schematic is illustrated below:
The schematic is fully consistent with the design we usually use without issues, except for the details relating to having two MCUs instead of only one.
Any suggestions as to what might cause the issue we are seeing would be greatly appreciated.
Solved! Go to Solution.
2024-10-30 02:02 AM
I figured it out.
I had forgotten that BOOT1 is a physical pin on the F412 (PB2) - I had left it floating in my design, so the wrong boot mode is selected.
If I manually ground PB2 with a jumperwire during reset, the correct bootmode is selected, and the DFU kan be reached as intended.
2024-10-21 01:22 PM
Dear @mjuels ,
in case of using one single MCU on same board it should have the same behavior also ?
As here the Board is bus powered it is a bit tricky as not sure that System reset using NRST pin is able to reset the USB Embedded PHY . If the board is no bus powered , just unplugging and repluging the usb cable should work ? If you can try it .
Hope it helps ,
STOne-32
2024-10-22 12:09 AM
Hello @STOne-32 ,
Thank you for your reply, although I am not certain I understand - Can you elaborate what you suggest I should try?
To elaborate on my issue:
You mention that the USB PHY might not fulle reset with the NRST reset - Is there a better way to conduct a reset, or something else I could try?
Best regards
2024-10-22 02:06 PM
Hello @STOne-32 ,
I think I maybe understood your suggestion:
So as you suggested, it seems that the issue lies not with the USB connection via the cable, but the internal reset of the USB phy.
What can be done to fix this - I have measured the NRST pin with an oscilloscope when the reset button is pressed, and it does go to 0V, which it what we usually do, so I am not sure what may be preventing the reset in this board?
2024-10-22 11:04 PM
Hello @STOne-32 ,
I saw you added a kudo but no remark om the issue:
We have used the same STM32F412 on other boards where this issue does not occur
I have measured that the NRST is in fact pulled low when i press the button, so I dont know why it wouldnt work
2024-10-30 02:02 AM
I figured it out.
I had forgotten that BOOT1 is a physical pin on the F412 (PB2) - I had left it floating in my design, so the wrong boot mode is selected.
If I manually ground PB2 with a jumperwire during reset, the correct bootmode is selected, and the DFU kan be reached as intended.