After 4 years - this is still the best video out there for setting up a BluePill in the Arduino environment. I was just sending a link to a friend and thought I should make another comment.
Excellent tutorial. I tried for hours to get a bootloader on my first STM32 with no success..... Used your method and within half an hour was up and running. Thank you
Thanks a lot. What a great video. everything you need to go from nothing to a working micro controller that loads just like an Arduino. So easy. I also would have liked talking and I read the comment below about English not being your first language. But your written English was spot on perfect.
Thank you for your comments and your kindness !! Google translate is my best friend ! Maybe in the future i will use a narrator voice. I did a test in "Introduction to electronics: Ohm's Law" video, and it seems promising.
Very good video! I managed to install my BluePill board. Of course there were still some problems. My conclusion is: There are no two identical microcontrollers on this planet. ;-) 1. My USB to seriell CH340 was happy to deliver 5V, but not 3.3V in spite there was a pin for it. So I connected another 3.3V power supply, used the CH340 with common ground and hoped for 5V tolerance on the ST. It worked. 2. From all the mass of USB cables I collected during the last years, I get the jackpot and choosed the one without data lines only for loading phones. :-) 3. To protect my computer from overvoltage etc. I used an USB hub between the computer and the ST. It didn't work this way. ;-) 4. I run out of coffee during the procedure which means no power supply for me. ;-)) In the end all worked fine! More good videos please!
for those who dont want to be botherd to register with stm to get the FLASHER-STM32 i found a hacky little workaround for it. (this trick replaces the part in the video between 10:46 and 13:13 first you go to \Arduino\hardware\Arduino_STM32-master\tools\win there you choose to edit serial_upload.bat with the texteditor of your choice(you might need to be in administrator mode to be able to save afterwards) find the line with: set str=%str:/=\% replace it with: set str=XXX where XXX is the full path to the Bootloader you downloaded (btw you might want to keep the original line in a comment for easier restoration of the file) save the file hit upload while still in Upload method: serial BOOM you did the same thing you could have done with that pesky STM software! remember to restore your serial_upload.bat! continue in the video at 13:13 btw my pc didnt care about the 9kOhms between those pins... worked from the start
thanks! i tried some time, but now, it works. now, is time to made some more serious sketch than "blink"... i think to... a double blink! :P P.S. accidentally, i put a 1,5 kOhm resistor instead of 1,8 kOhm one, so, the total resistance is 1,3 kOhm, but windows (7) recognizes it flawlessly! :)
Thank you for the useful video that can be quite helpful to those who are not familiar with Arduino as well as the Blue Pill board. Despite the fact that there is no narration, it's easy to follow all the steps. While you have meticulously described each step, it is a bit of a surprise that you have not mentioned the step for opening the Blink file from the examples. At 9:16, you are editing the Blink file and from the screen one understands that the Blink file has been opened. Looking forward to your future videos on interesting projects with the Blue Pill board.
Just a heads up, on linux(Ubuntu) theres no need to install drivers for serial communication. So it works great out of the box. Stm32 F103C w/ ftdi232 , Ubuntu 16.04 cheers
The file you are referring (9:14) is the "Pins Mapping" of STM32 driver. Download the driver at step 2 and you can find the file at "Arduino_STM32-master\STM32F1\variants\generic_stm32f103c\board.cpp". I have used the numbers 0-34 just to demonstrate how to use a simple number for "Pins Configuration" (this can be useful, for example inside a "for loop").
Why do I get an error when uploading a sketch. The error says "Error compiling for board Generic STM32F103C series" and, of course no port shows up. I can successfully upload sketches the "old fashioned" way so I am not particularly bothered but it would be nice to know why it doesn't work using the USB port. Thanks for a great tutorial at least I learnt how to us SMT's flash loader.
To see them in boards you have to open the Arduino IDE, go to File, Preferences and in additional boards manager URLs paste this link dan.drown.org/stm32duino/package_STM32duino_index.json Then, go to Tools, boards, boards manager and search STM32F1 and install the one that comes up. That's it :D
pretty awesome guide thanks for uploading. one issue that I get is that when I try to upload a simple "blink" program I get "access denied" message :( any ideas? My computer is able to detect the STM32 board as Maple something device but I'm not able to write onto with the bootloader
I have tried as shown in the video but i am still getting same error please help Failed to init device. stm32flash 0.4 stm32flash.googlecode.com/ Using Parser : Raw BINARY Interface serial_w32: 115200 8E1
First make sure that the TOTAL resistance is around 1,5 KOhm. Depending on your version, you may have installed on board a 10 KOhm (in my case) or 4 KOhm or even the correct 1,5 KOhm (typical for RedPill). Then make sure you have installed the drivers at step 2 (5:40) or else you will get an "unknown device" in the device manager. There are also some reports that the USB connector is not soldered correctly, check this also. I hope this is helpful.
Excelente Tutorial. Para no colocar otra resistencia (en el momento no tenia) retire R10 y la conecte entre 5V del USB y A12. La pista de los 5V esta justo al lado del pin lo que permite hacerlo sin mucha modificaciones. Funciono bien. ibb.co/eFnf05
Thank you for your input and contribution. I agree with you, it would have been 10 times easier for me to produce this video or any video... but... English is not my native language... and trust me... you wouldn't want to hear my poor English accent and my silly grammar mistakes! The setup of this video is made this way so you can freeze the screen and you have all the information that you need in terms of diagram/table/list and additional guidline information.
All Windows is annoying because is a total bulsheet , try Linux if you want to see how a real OS work's. On Linux is much easy and much faster the process of installation :)))
I would like to thank you for this comment. By encouraging everyone to learn an unsellable skill, you leave the market more open for those of us who understand that employers and business clients use Windows on their PCs and Android on their phones. :)
After 4 years - this is still the best video out there for setting up a BluePill in the Arduino environment. I was just sending a link to a friend and thought I should make another comment.
OHH MAN!! YOU HAS SAVE ME! I THOUGHT THAT I COULDN´T USE THE STM32 ANYMORE, CUS THAT MESSAGE SHOWED WHEN I UPLODED MY CODES... THANK YOU SO MUCH!
Still works in 2023 bro. You rock!!
Perfect explanation without leaving any minute doubt
Excellent tutorial. I tried for hours to get a bootloader on my first STM32 with no success..... Used your method and within half an hour was up and running.
Thank you
Thanks a lot. What a great video. everything you need to go from nothing to a working micro controller that loads just like an Arduino. So easy. I also would have liked talking and I read the comment below about English not being your first language. But your written English was spot on perfect.
Thank you for your comments and your kindness !!
Google translate is my best friend !
Maybe in the future i will use a narrator voice. I did a test in "Introduction to electronics: Ohm's Law" video, and it seems promising.
i've been looking for such tutorial for a few weeks, thanks!
Very good video! I managed to install my BluePill board. Of course there were still some problems. My conclusion is: There are no two identical microcontrollers on this planet. ;-)
1. My USB to seriell CH340 was happy to deliver 5V, but not 3.3V in spite there was a pin for it. So I connected another 3.3V power supply, used the CH340 with common ground and hoped for 5V tolerance on the ST. It worked.
2. From all the mass of USB cables I collected during the last years, I get the jackpot and choosed the one without data lines only for loading phones. :-)
3. To protect my computer from overvoltage etc. I used an USB hub between the computer and the ST. It didn't work this way. ;-)
4. I run out of coffee during the procedure which means no power supply for me. ;-))
In the end all worked fine!
More good videos please!
Nice guide. I like something quick and step by step like this.
Perfect step by step video ! Thanks a lot !
Great tutorial, clarified a lot of problems I had. I mean, obviously when you have a mini usb that;s how you dll it? No, but now I know. Regards, Mike
very clear, and easy to understand, thank you very much.. you deserve the best, sure thumb UP!
great video i'm only new to the micro-controller scene and this video helped out greatly keep up the great work.
for those who dont want to be botherd to register with stm to get the FLASHER-STM32 i found a hacky little workaround for it.
(this trick replaces the part in the video between 10:46 and 13:13
first you go to \Arduino\hardware\Arduino_STM32-master\tools\win
there you choose to edit serial_upload.bat with the texteditor of your choice(you might need to be in administrator mode to be able to save afterwards)
find the line with: set str=%str:/=\%
replace it with: set str=XXX
where XXX is the full path to the Bootloader you downloaded
(btw you might want to keep the original line in a comment for easier restoration of the file)
save the file
hit upload while still in Upload method: serial
BOOM you did the same thing you could have done with that pesky STM software!
remember to restore your serial_upload.bat!
continue in the video at 13:13
btw my pc didnt care about the 9kOhms between those pins... worked from the start
U just wasted 3 min 35 sec of my life span in installing arduino ide. But the video is amazing and you deserve a thumbs up.
Very useful. Thank you for doing this,
I will try as per your demo. Seems it will work by provifin the res.
thanks!
i tried some time, but now, it works.
now, is time to made some more serious sketch than "blink"... i think to... a double blink! :P
P.S. accidentally, i put a 1,5 kOhm resistor instead of 1,8 kOhm one, so, the total resistance is 1,3 kOhm, but windows (7) recognizes it flawlessly! :)
Hey you deserve more than a thumb from me if possible I give 1000 thumbs.
Thanks for your time and great work😘😎😊
Nice video.
Thank you for the useful video that can be quite helpful to those who are not familiar with Arduino as well as the Blue Pill board. Despite the fact that there is no narration, it's easy to follow all the steps.
While you have meticulously described each step, it is a bit of a surprise that you have not mentioned the step for opening the Blink file from the examples. At 9:16, you are editing the Blink file and from the screen one understands that the Blink file has been opened.
Looking forward to your future videos on interesting projects with the Blue Pill board.
Very useful, thanks for the effort!
Thank you 🙂
love it
Excelente Tutorial!
Wi it make any difference as I am using Arduino IDE 1.8.19 version the latest. Should I try with 1.8.8
Your video really helpful
I like this very easy to learning thanks you
very usefull
Love you Bro, it really helped me a lot
The problem I was faving in last, that port not visible and Usb malfuction
Thank you so very much.. this is realy greate video ..perfect..
Very nice and usefull video
thank you
Sorry 1.8.1 , which u r using
Just a heads up, on linux(Ubuntu) theres no need to install drivers for serial communication. So it works great out of the box.
Stm32 F103C w/ ftdi232 , Ubuntu 16.04
cheers
What is better STM32F103C8T6 or Arduino Nano?
thank you sir.
Thanks for your effort. I'll try to install the bootloader on mine using a mac. Hopefully it's possible.
hi, if i build my own board using new c8t6 chips, can i do this? or do i need to burn the bootloader first?
How could u find LED in your board is a 32, u opened a reference where you marketed in red. Where to find that Sheet?
The file you are referring (9:14) is the "Pins Mapping" of STM32 driver. Download the driver at step 2 and you can find the file at "Arduino_STM32-master\STM32F1\variants\generic_stm32f103c\board.cpp". I have used the numbers 0-34 just to demonstrate how to use a simple number for "Pins Configuration" (this can be useful, for example inside a "for loop").
Why do I get an error when uploading a sketch. The error says "Error compiling for board Generic STM32F103C series" and, of course no port shows up. I can successfully upload sketches the "old fashioned" way so I am not particularly bothered but it would be nice to know why it doesn't work using the USB port. Thanks for a great tutorial at least I learnt how to us SMT's flash loader.
Can work any touch screen on this module?
USB Boot-Loader not found.
Could you put a link to those 2 beautiful pin layout pictures in the description, please
Here it is: wiki.stm32duino.com/images/a/ae/Bluepillpinout.gif
NOT WORKING!! ARDUINO1.8.4 WIN7. no option generic stm32. i dont no why?? driver installed. help please ;(
To see them in boards you have to open the Arduino IDE, go to File, Preferences and in additional boards manager URLs paste this link dan.drown.org/stm32duino/package_STM32duino_index.json
Then, go to Tools, boards, boards manager and search STM32F1 and install the one that comes up.
That's it :D
pretty awesome guide thanks for uploading.
one issue that I get is that when I try to upload a simple "blink" program I get "access denied" message :( any ideas?
My computer is able to detect the STM32 board as Maple something device but I'm not able to write onto with the bootloader
What pin you using for blink? PC13 or 32 in IDE? It should be pinmode(32, OUTPUT);
Usb not reconizef error
Great..
Do you have some experience for stm8 chip?
Can we use Arduino IDE for stm8?
Thanks
I have tried as shown in the video but i am still getting same error please help
Failed to init device.
stm32flash 0.4
stm32flash.googlecode.com/
Using Parser : Raw BINARY
Interface serial_w32: 115200 8E1
I dont know why it doesnt work when i connect it via USB. :/ I connected a resistor, but Windows still doesnt recognize STM.
First make sure that the TOTAL resistance is around 1,5 KOhm. Depending on your version, you may have installed on board a 10 KOhm (in my case) or 4 KOhm or even the correct 1,5 KOhm (typical for RedPill). Then make sure you have installed the drivers at step 2 (5:40) or else you will get an "unknown device" in the device manager. There are also some reports that the USB connector is not soldered correctly, check this also. I hope this is helpful.
RideLifeWithGrace yeah but i even removed attached resistor and i put 1.5kohm instead but it still doesnt work
Hi, Did you ever get the usb for STM32 working?
F*** yea!
Nothing ever showed up in windows control panel.
Sadly u are inactive :(
Great Video but with annoying background music.
Excelente Tutorial. Para no colocar otra resistencia (en el momento no tenia) retire R10 y la conecte entre 5V del USB y A12. La pista de los 5V esta justo al lado del pin lo que permite hacerlo sin mucha modificaciones. Funciono bien.
ibb.co/eFnf05
Conectaste r10 entre a12 y 5v?según el schematics ya está entre 5 y a12 no? O lo Conectaste directo?
No, segun esquematicos y en la placa esta entre a12 y 3.3V. Mira la imagen
Newlin Nieves ok, gracias. No había visto que habías soldado una resistencia smd! Gracias
Y la misma que esta en R10, así que solo la cambie de lugar.
Newlin Nieves funciona re bien! Muchas gracias por el tip! :)
annoying BGM
fucking dreadful noise there
It would have been 10 times better and 3 times as short if you could just speak.
edit: I dont watch videos like this, just saying
Thank you for your input and contribution.
I agree with you, it would have been 10 times easier for me to produce this video or any video... but... English is not my native language... and trust me... you wouldn't want to hear my poor English accent and my silly grammar mistakes!
The setup of this video is made this way so you can freeze the screen and you have all the information that you need in terms of diagram/table/list and additional guidline information.
lol, Fair enough, cheers
Annoying music is annoying.
All Windows is annoying because is a total bulsheet , try Linux if you want to see how a real OS work's. On Linux is much easy and much faster the process of installation :)))
I would like to thank you for this comment. By encouraging everyone to learn an unsellable skill, you leave the market more open for those of us who understand that employers and business clients use Windows on their PCs and Android on their phones. :)
Oh yeah...sure
Horrible!