-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
Description of defect
On bluepill (stm32f103c8t6) board, the USBSerial can work on Mbedos 6.3 with #13522 #13406 files changed. But after mbedos6.4 released, it can't work now. The serial port can be identified on windows 10,but it can't work now, maybe there are some usb configration errors.
My project is configed like this:
- The pin map in custom PeripheralPins.c :
//*** USBDEVICE ***
MBED_WEAK const PinMap PinMap_USB_FS[] = {
{PA_11, USB_FS, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, 0)}, // USB_DM
{PA_12, USB_FS, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, 0)}, // USB_DP
{NC, NC, 0}
};
the pin names in the custom PinNames.h
//USB pins
USB_DM = PA_11,
USB_DP = PA_12,
my med_app.json like this:
"target_overrides": {
"*": {"target.clock_source": "USE_PLL_HSE_XTAL",
"target.clock_source_usb": "1",
"target.device_has_add": ["USBDEVICE"]}} - Tested the usbserial(usbcdc) on my bluepill board with stm32cube auto code configration. It can work well.
Target(s) affected by this defect ?
Bluepill (STM32F1C8T6) boards
Toolchain(s) (name and version) displaying this defect ?
None.
What version of Mbed-os are you using (tag or sha) ?
Mbedos 6.4 ( 8ef0a43)What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
Mbed studio 1.3.
How is this defect reproduced ?
- The bluepill(stm32f1c8t6) ,change the PA_12 pull resistor (R10) from 10kohm to 1.5kohm.
- Cloned project from https://os.mbed.com/users/hudakz/code/mbed-os-bluepill/
- Fix the STM32 usb: fixing missing header file STM32 usb: fixing missing header file #13846.
- USBSerial still don't work well.