Personnally i prefer to use the st-link v2 interface. It's also integrated into Arduino ide, and programming is ultra fast. Stm32 is a really good and extremely cheap solution for hobbyists. Arduino support is not fantastic, but main libs are there.
Agree with this. My experience has been that the ST-IDE doesn't handle reset via ST Link V2 (after market version) so you have to press Boot0 button while program loads, then specifically hit reset - not as clunky as erasable EPROMS :) - but the IAR ARM workbench does everything from the IDE interface. It's very easy to manage this way with IAR.
I am using STlink V2 programmer and Arduino IDE to program the Blue Pill board. Even after uploading the code the LED is not blinking. Can you please help me resolve this issue?
Well first check the pinout if it is correct and please try to use a usb to ttl because i haven't used a STlink yet and some of my friends have faced issues with stlink with Arduino Ide , but i think if code is uploaded then it should work. Please check the board you are using and check the pinout as well as there are more than one types of board of these kind are there.
The code gets successfully uploaded on the board but it seems that it is not running because after uploading the blink code with the pin changed to 'PC13', no LED is blinking. Please help.
While uploading, it is showing me the following message after which the upload gets stuck. maple_loader v0.1 Resetting to bootloader via DTR pulse Reset via USB Serial Failed! Did you select the right serial port? Searching for DFU device [1EAF:0003]... Assuming the board is in perpetual bootloader mode and continuing to attempt dfu programming... dfu-util - (C) 2007-2008 by OpenMoko Inc. Couldn't find the DFU device: [1EAF:0003] This program is Free Software and has ABSOLUTELY NO WARRANTY timeout waiting for COM7 serial. What should I do?
hi i uploaded from arduino ide to my bluepill stm32f103 board. i have to click reset button when i plug the energy to card ?? why ?? loop code not runing until i hit the reset button.
Thats not supposed to happen. I think for you the firmware reset is not happening (still not sure , just a guess) because some people also faced reset issue because the stm32 comes with 2 different scenarios so for one people are able to work properly and for another one the reset won't work. So please check if it works in other boards of stm32.
Thank you so much for the video !! perfect ! you saved me a lot of headache with the flashing process... Btw to make it work, as I used a Mega 2560 for USB-to-serial communication, and maybe somebody is in the same case, I needed to use 57600 baud rate for serial communication and reset the STM32 board multiple times by pressing the button before it got recognized by the flash utility software. Then it worked OK :)
hey, i need help in doing the same thing you did, in my case instead of mega i am using UNO as usb to ttl, but i am getting error "no response to target". Could you please elaborate what you did exactly?
@@akshatshah884 As I remember (it's been quite a long time ago) , and after some other trial and errors, my STM32 was stuck at a certain baud rate because of some previous setup, so maybe you should try different baud rates. Also because of this, only my 2560 was able to connect and deliver such a fast baud rate without errors (I tried some atmega328 I had on hand and it gave me errors at 57600bps) . And also pressed quite a few times the reset button on the STM32 board, when the flashing tool soft tries to recognize and connect to the board, and repeated the process until I got it working. I took a lot of trials to get it recognized and flashed.
@@akshatshah884 just bypassed the chip with reset to ground, I think the FTDI chips were differents and the one on the mega board worked. I also may have used the multiple serial port of the mega with a king of serial proxy program, I don't remember :(
Why is it necessary to remove the BOOT0 pin after programming and before powering-off? Is that a hardware or software issue? It seems like the STM32duino-bootloader implements a CDC usb class "Maple serial (Com10)".. but the source code for STM32duino-bootloader looks like it's HID class! BTW, once the bootloader is flashed, is there a preferred tool other than the Arduino IDE, that can upload a sketch? I see XLoader and AVRDude can do it via the command line for example: "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude" "-CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega328p -carduino -PCOM13 -b9600 -D -Uflash:w:C:\Temp\arduino_build_221325/OpenLCD.ino.arduino_standard.hex:i
Well I am stumped. I follows the instruction in this video and loaded the USB boot loader into the BluePill board without incident. However I have been unable to get a driver to load into windows 10. I have tried the instuctions herein several times and all I get is 'Unknown USB Device (Device Descriptor Request Failed)' Thoughts? Troubleshooting ideas?
Please help me, I flashed the file you provided using ST link V2 utility because I did'nt have a FTDI module. Now the device isn't getting connected to ST link Utillity. PLease tell me how to erase the chip
amazing! i tried to conect a ttl-usb adapter to my bluetooth headset.the headset have only gnd tx and rx. i tried to connect with OVC3868 software however the doenst seems connected . do i need to connect a 3.3v battery to the ttl-usb adapter ?do i need to disconnect the internat battery of the bluetooth headset? please help!!
I think you can turn the Bluetooth On with its own battery , no need to remove that but but since you are plugging it into PC so it should be powered with PC, so in short Bluetooth has its own power and usb to ttl should be powered by a PC or wherever you are connecting it so it should work.
@@electronicGURU Thanks for your answer, I want to ask one more question. I am using the compiler named keil, how can I upload hex file to blue pill via USB without using arduino ide. I would be very glad if you answer.
Thanks for Video. I don't see "STM32F103C" in Arduino 1.8.8 with "Tools -> Board:". How to get "Board: Generic STM32F103C series" in Arduino 1.8.8?Is Arduino disabled STM32F103C now?
Thanks for details..! I have resolved this issue by following steps from below link - wiki.stm32duino.com/index.php?title=Installation Anyways, thanks for response..!
TrueSTUDIO is powerful IDE from Atollic. Now it is part of STMicroelectronics and it became free tool now. Is there any videos available on how to program/flash user code into Blue Pill board (STM32F103C8 with USB bootloader updated) using TrueSTUDIO IDE?
sir after flashing the bootloader .then connecting the STM 32 via USB, in the device manager I cant see the com port while there is an exclamation under USB Bus controller
@@electronicGURU Why feels not handy? There are four wires which should be 'glued' together or fixed by some tape with designation what is up or down in order not to connect wrongly. Then we can use our USB port on STM32 board for other purpose (host USB or OTG usb).
@@electronicGURU Yes, that's right. It is good to have more options. Your video is very informative. My videos are with bad voice, I have problem with my speech and poor English pronunciation. Keep good work!
it would be helpful if you actually said the name of the bootloader, gave an original link or gave actual credit to the bootloader author/s. or even explained what the bootloader does.
@@electronicGURU sure no problem. i'm learning stm32 and trying to figure out how to take advantage of its superior capabilities but the arduino ide seems to not expose it.
Well i would recommend to use it alot with some proper charging and step up module that will be good. You can simply attach it as well. But i won't recommend it.
Try this : m.aliexpress.com/item/32612779181.html?trace=wwwdetail2mobilesitedetail May be you will like it. I have few of these always comes in handy whenever you need power circuit for your project.
@@pacsmile do you reckon i should use keil or atollic truestudio? atollic was bought by STmicrosystems so i thought it was a good route. what do you think? does it jive well with cubemx?
I m new to embedded. I had a question sir. We are using usb cable to upload the program for USB to UART converter is required once to upload boot loader. Is it necessary?
Beautiful video tutorial, I wanted to ask for your help if you were available, to program my Blue Pill through Arduino Ide. to manage the relays connected to the internet through ENC28j60 I use the Blynk application. Only that's the first time I use STM32F103. Thank you
Help!! This is what I got instead..... Sketch uses 14300 bytes (21%) of program storage space. Maximum is 65536 bytes. Global variables use 3088 bytes (15%) of dynamic memory, leaving 17392 bytes for local variables. Maximum is 20480 bytes. maple_loader v0.1 Resetting to bootloader via DTR pulse Searching for DFU device [1EAF:0003]... dfu-util - (C) 2007-2008 by OpenMoko Inc. This program is Free Software and has ABSOLUTELY NO WARRANTY Couldn't find the DFU device: [1EAF:0003] I have read some forums saying that you need to direct the board into perpetual bootloader mode to fix the problem by pressing a BUT or USER button on the board, but there is only a reset button.... How can I fix this? Thank you and great video as always