Page 1 of 1

Cannot upload program through serial

Posted: Fri May 08, 2020 2:45 pm
by Praveen
I have stm32f103. I have tested serial test program that prints hello word continuously without any delay. But after that when I I try to upload new program or erase, I cannot succeed in it. Please help me, what will be the problem how to rectify.


I am using Linux and USB to TTL converter with 3.3 volt logic level uploaded using stm32flash.

Re: Cannot upload program through serial

Posted: Fri May 08, 2020 3:01 pm
by ag123
this one?
https://sourceforge.net/p/stm32flash/wiki/Home/
did you set boot0 and press reset?

Re: Cannot upload program through serial

Posted: Sat May 09, 2020 2:48 am
by Praveen
Yes i did

Re: Cannot upload program through serial

Posted: Sat May 09, 2020 3:33 am
by ag123
did you try the other options that disable the write and read protections?
https://sourceforge.net/p/stm32flash/wiki/Home/

note if you are using a blue pill stm32f103 be wary of fakes, i.e. the chip on it may not be a stm32f103