upload arduino code in stm32f103c8 after
here is my device manager recognize the STM32F103C8 as Maple Serial (COM13)
und here my arduino IDE screenshot when i tried to upload the code it doesn't find the Device every Uploading .
how i can solve this issue ? i have struggle with this issue for three days.
Notes: I followed the instruction of flashing bootloader as provided in this link here : https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki/Flashing-Bootloader-for-BluePill-Boards
thanks in advance
You have to enable USB CDC and use the com port created.
You have to enable USB CDC and use the com port created.
Okay Like this one Here :
But still gave me the same error as i provided in the screen
you have to flash it first, then select the new com port created.
you have to flash it first, then select the new com port created. i have received the same issue after select the CDC what i am missundersting here ?
do you mean flash arduino bootloader ?
you have to flash it first, then select the new com port created.
could you please clarify your suggestion because i am still confused and struggled at the position ?
As stated here: https://github.com/stm32duino/Arduino_Core_STM32/wiki/Upload-methods#maple-dfu-bootloader
[!WARNING] USB CDC have to be enable else you will not be able to upload automatically as bootloader reset sequence are managed through the USB CDC communication port.
Your issue is that the board is not started in Bootloder mode and the COM port is the USART one not the CDC. So the reset sequence to start un BL mode can't be done.
To start in BL mode manualy set the BOOT0 at 1 or eraser fully the flash then flash the bootloader, as no application it will stay in BL mode (having a DFU device and no com port). Then flash the apllication with CDC enabled. Next flash will work using the CDC com port.
As stated here: https://github.com/stm32duino/Arduino_Core_STM32/wiki/Upload-methods#maple-dfu-bootloader
Warning
USB CDC have to be enable else you will not be able to upload automatically as bootloader reset sequence are managed through the USB CDC communication port.
Your issue is that the board is not started in Bootloder mode and the COM port is the USART one not the CDC. So the reset sequence to start un BL mode can't be done.
To start in BL mode manualy set the BOOT0 at 1 or eraser fully the flash then flash the bootloader, as no application it will stay in BL mode (having a DFU device and no com port). Then flash the apllication with CDC enabled. Next flash will work using the CDC com port.
here is my device manager
and the monitor display this message :
after that i followed you instruction to enable CDC and Select the right port number.
After trying to upload the code i was got this error
Com port is only used to reset in Maple DFU mode.
As said after the first flashing of the bootloader, your board should be in this mode.
But it requires a dedicated driver available here:
https://github.com/rogerclarkmelbourne/Arduino_STM32/tree/master/drivers/win
More info here: https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki/stm32duino-bootloader https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki/Flashing-Bootloader-for-BluePill-Boards
Here the result of a second upload where COM9 is the USB CDC port which reset the board in Maple DFU mode then flash: