Uploading Arduino code to STM32F103C8 using Arduino IDE

I have an issue when i tried to to upload code in stm32 while uploading i pressed the reset button and display this message without flashing.

Here is the screenshot .

image

how i can solve this problem and upload

I can't help you as I'm not familiar with the board. You've posted this in the IDE 1.x section while you're using IDE 2.x; however I've moved it to Avrdude, stk500, Bootloader issues - Arduino Forum as that is more suitable when it comes to upload problems.

It has been reported a few times in this forum that the Serial Monitor must be closed to be able to download.

See bottom left corner click on the X.

I have closed the serial monitor before uploading sketch but it still the same error .

I'm setting the
BOOT 0 pin ----> 0
BOOT 1 pin ----> 0 and using serial to upload.

Now you wait for the Experts to join in and solve this.
Good luck.

okay thanks

@shehab_iot
Do you use the ST Link programmer?

Then you can load the HEX file from the IDE compilation and program the Bluepill direct.

can i use the st link without flashing bootloader

I might be wrong but I think the Bootloader is only need when programming from the USB.

Try it and see what happens.

when i connected the stm32 right to st link i seems me like this in screen

should i earse the flash before program here ?

I dont have the St Link programmer with me , but normally I just click on "Program and Verify" the other settings is default.

Like here ?

Yes the screen looks familiar now just hit START.

Move the two jumpers back ,I just keep them at that position and program. :crossed_fingers:

Did it work?

yes it works thanks a lot for your help :smiley: :smiley: :smiley:

:+1: