2022-12-01 11:39 AM
I created PCB by basically following this design, but I used as MCU the STM32F303CBT6. Programming through FTDI programmer works all fine, but when I try to use the onboard USB port, Windows doesn't want to accept it and in device manager says that it's a unknown device.
By reading through data sheets I've figured that for USB to work we need to enter DFU bootloader mode, by setting BOOT0 HIGH and BOOT1 LOW. Still Windows doesn't want to support USB.
I've also tried powering with external power supply the PCB and then connecting do PC. Still nothing...
I've tried turning USB on through STM32CubeMx by using external crystal, still nothing...
As my goal is to later program stm32f3 using Arduino IDE I'm quite lost what more should I try.
Your help would be greatly appreciated :)
2022-12-02 02:23 AM
>>As my goal is to later program stm32f3 using Arduino IDE
buy or use an stlink , arduino supports SW loads troguh stlink (no usb needed)
IF you diont have any stlink you could use one of the builtin stlinks inside any nucleo board.
2022-12-02 07:03 AM
Is there no way to achieve this through built in usb of the mcu? Because I'd like to use the built in usb to upload code but Windows doesn't want to recognize the usb device. Also, when I've uploaded blink sketch from Arduino IDE, to test functionality of mcu it works all fine, but usb won't start if the loop function is running.
2022-12-02 10:57 AM
2022-12-04 01:17 PM
Another one, who just copied the schematic from Chinese idiots.
2022-12-12 01:55 AM
>>Is there no way to achieve this through built in usb of the mcu?
yes
>>I've uploaded blink sketch from Arduino IDE, to test functionality of mcu it works all fine, but usb won't start if the loop function is running.
thats your problem right there.
Maybe something wrong with the Serial.begin() function?
Are you sure youre using the correct board package?
2022-12-12 01:56 AM
Arduino makes sense , untill you need to dig deeper