Problem uploading to STM32F103C8T6 board
Posted: Wed Apr 15, 2020 6:41 pm
Hi all,
Recently I decided to upgrade from an Arduino to an STM32 board. I bought my board from https://www.ebay.com/itm/323747797666 (seller stopped selling but it should be the generic 'blue pill' module) and I got the programmer from
https://www.ebay.com/itm/FT232RL-3-3V-5 ... 2749.l2649, but I've not been able to enjoy them that much:
The problems lies when uploading to the board. I have tried a number of things before posting here, none of which helped. I have viewed many forums of people with similar problems, none of which solved my problem. My guess is a faulty programmer, let me explain:
First thing I noticed when uploading for the first time was this error message:
This was immediately seemed odd to me. Whenever I unplugged the programmer from my breadboard and then uploaded the same sketch, the same error message showed up. This told me that possible wrong connections weren't the immediate problem. I have setup the Arduino IDE properly as well as the connections made from board to programmer (you have to take my word on this).
Next I tried reinstalling the IDE as well as the hardware files to support STM32 boards. I also tried doing the exact same thing on another machine, with no changing result.
After this I tried 'buring the bootloader' with this https://www.instructables.com/id/Progra ... l-Via-USB/ instructable as help. This failed at step 4 when trying to use the stm32 flasher. I selected the port and changed no other setting. The software gave me the following error message:Again, when unplugging the programmer from the board, the same error message came up
When this failed as well I tried installing another stm32 flasher form this link https://sourceforge.net/p/stm32flash/wiki/Home/. When selecting my device with this command it gave me an error message similar to the first one I got:
Lastly, I tried uploading a sketch with the same programmer to an Arduino Nano, with no result once again. The Nano is not faulty for sure because with a normal usb cable uploaing did work.
So my conclusion is a faulty programmer. Before buying a new one I would like to be sure and I want to understand why it is not working.
By now I have become quite desperate for this to work, so any help would be appreciated.
Recently I decided to upgrade from an Arduino to an STM32 board. I bought my board from https://www.ebay.com/itm/323747797666 (seller stopped selling but it should be the generic 'blue pill' module) and I got the programmer from
https://www.ebay.com/itm/FT232RL-3-3V-5 ... 2749.l2649, but I've not been able to enjoy them that much:
The problems lies when uploading to the board. I have tried a number of things before posting here, none of which helped. I have viewed many forums of people with similar problems, none of which solved my problem. My guess is a faulty programmer, let me explain:
First thing I noticed when uploading for the first time was this error message:
Code: Select all
Failed to init device.
stm32flash 0.4
http://stm32flash.googlecode.com/
Using Parser : Raw BINARY
Interface serial_w32: 115200 8E1
Next I tried reinstalling the IDE as well as the hardware files to support STM32 boards. I also tried doing the exact same thing on another machine, with no changing result.
After this I tried 'buring the bootloader' with this https://www.instructables.com/id/Progra ... l-Via-USB/ instructable as help. This failed at step 4 when trying to use the stm32 flasher. I selected the port and changed no other setting. The software gave me the following error message:
Code: Select all
No response form the target, the Boot loader can not be started.
Please, verify the boot mode configuration and the flash protection status, Reset your device then try again...
When this failed as well I tried installing another stm32 flasher form this link https://sourceforge.net/p/stm32flash/wiki/Home/. When selecting my device with this command
Code: Select all
stm32flash COM11
Code: Select all
stm32flash 0.5
http://stm32flash.sourceforge.net/
Interface serial_w32: 1152008E1
Failed to init device.
So my conclusion is a faulty programmer. Before buying a new one I would like to be sure and I want to understand why it is not working.
By now I have become quite desperate for this to work, so any help would be appreciated.