USB enumeration not working with custom F103C8 board
Posted: Sat Jun 21, 2025 1:33 am
Hello
I am trying to configure a custom board to use Roger's bootloader. I've confirmed the USB hardware works with a sketch uploaded directly to the board via STLink, however I've been unable to properly configure the bootloader to enumerate. The bootloader does appear to run fine (fast flashing LED followed by a slower flash) but nothing appears in device manager which leads me to believe there's something wrong with the USB enumeration code.
I have pin PB15 configured as an enumeration pin, connected to USB D+ via a 1.5kΩ resistor:

And I have configured an entry in the bootloader makefile for my hardware configuration:
In theory this should be all that's needed to get the bootloader to work - but other than the LED flashing correctly the USB interface appears to be totally non-functional. Does anyone know what could be wrong?
I am trying to configure a custom board to use Roger's bootloader. I've confirmed the USB hardware works with a sketch uploaded directly to the board via STLink, however I've been unable to properly configure the bootloader to enumerate. The bootloader does appear to run fine (fast flashing LED followed by a slower flash) but nothing appears in device manager which leads me to believe there's something wrong with the USB enumeration code.
I have pin PB15 configured as an enumeration pin, connected to USB D+ via a 1.5kΩ resistor:

And I have configured an entry in the bootloader makefile for my hardware configuration:
Code: Select all
#elif defined TARGET_DEKO32
/*
Status LED on PC13
USB ENUM pin PB15
No user button
*/
#define HAS_MAPLE_HARDWARE 1
#define LED_BANK GPIOC
#define LED_PIN 13
#define LED_ON_STATE 1
#define USB_DISC_BANK GPIOB
#define USB_DISC_PIN 15