2018-05-16 10:20 AM
I'm unable to get my STM32F411 into USB DFU mode on custom hardware. Based on the flow in AN2606 a number of things could be causing this. I've seen a number of references on here with people having issues getting HSE recognized (I have a 4MHz HSE which should be within spec) but I'm not sure how to debug the flow to see where we're getting stuck or what state it's ending up in. Is there a way to do this?
Solved! Go to Solution.
2018-05-16 10:49 AM
The debugger should work on ROM based code. The ROM can be pulled and disassembled.
You'd probably want to first determine if the HSE starts quick enough and the code can correctly determine and use the frequency in question. The docs suggest the F411 is quite broad in its frequency support, other F4/F2 have specific supported frequencies.
2018-05-16 10:49 AM
The debugger should work on ROM based code. The ROM can be pulled and disassembled.
You'd probably want to first determine if the HSE starts quick enough and the code can correctly determine and use the frequency in question. The docs suggest the F411 is quite broad in its frequency support, other F4/F2 have specific supported frequencies.
2018-05-23 11:43 AM
I just noticed that it seems like the Nucleo-F411RE doesn't even have a HSE populated. How is that it's able to enter DFU mode? Is it using the MCO from the STLINK part? Could I fly wire MCO from the dev kit to the OSC of my custom board to test?
2018-05-23 12:02 PM
There are solder bridges, but generally the DISCO and NUCLEO boards source an 8 MHz clock from the ST-LINK, drops a crystal from the BOM.
You could use a frequency generator, a TIM output, or MCO from either STM32 on the NUCLEO board. Would tend to keep such leads short, and of course share a common ground.