Can't program F401 after PA9 set as INPUT_PULLUP
Posted: Wed Apr 17, 2024 5:40 pm
First of all I'm fairly new to STM32, so please excuse my lack of knowledge here...
I accidentally set "PA9" as INPUT_PULLUP in a sketch and after uploading the sketch I can't seem to program my Black Pill F401 anymore using USB and DFU.
It says
Error: Target device not found
Establishing connection with the device failed
And Windows is throwing an error message regarding the usb device.
Is there any way I can get this back to working and undo my mistake?
Problem really is, that I can't even upload any correcting parameters, since the board is not recognized as a usb-device anymore.
Is there something I can do on the hardware level? Connect certain pins?
Or is there maybe even a factory reset for these boards?
Please note that before I set PA9 as INPUT_PULLUP everything was working absolutely fine and I've been uploading sketches for months without any issue at all.

I accidentally set "PA9" as INPUT_PULLUP in a sketch and after uploading the sketch I can't seem to program my Black Pill F401 anymore using USB and DFU.
It says
Error: Target device not found
Establishing connection with the device failed
And Windows is throwing an error message regarding the usb device.
Is there any way I can get this back to working and undo my mistake?
Problem really is, that I can't even upload any correcting parameters, since the board is not recognized as a usb-device anymore.
Is there something I can do on the hardware level? Connect certain pins?
Or is there maybe even a factory reset for these boards?
Please note that before I set PA9 as INPUT_PULLUP everything was working absolutely fine and I've been uploading sketches for months without any issue at all.