How to program STM32F103C8T6 with ArduinoIDE
Nov 15th, 2021 | by: Noob 7868Category: Electronics Arduino
The STM32F103C8T6 board-also known as Blue Pill-is the development board M3 microcontroller of ARM Cortex. It looks very similar to Arduino Nano, but it contains more functions.
In this article, I will show you how to set up STM32 using Arduino IDE and show you how to program directly from the USB UART module.
STM32 overview "Blue Pill"
If you look at this $2 microcontroller, the first thing you see is its jumper pins, which are used to use the default USART bootloader. There is also a micro USB port on the board, but unfortunately it cannot be used for programming because it does not have an associated bootloader.
Compared with the official Arduino boards, these boards are very cheap and the hardware is open source. In addition to the microcontroller, the board can also accommodate two crystal oscillators-an 8MHz crystal and a 32KHz crystal-which can be used to drive the internal RTC (Real Time Clock). Therefore, the MCU can work in deep sleep mode, which is very suitable for battery-powered applications.
To program the board, we need to use a simple USB to UART converter, and then we can program it directly from the computer via USB.
PIC01
STM32 pinout
Required materials
STM32 F103C8T6
USB to UART converter (FTDI)
Jumper
Breadboard
Arduino IDE
Wiring project
Connect the circuit boards according to the connections shown in the Fritzing diagram below and connect them to the computer.
PIC02
Fritzing diagram
Use the build settings with jumpers in place.
Connect the jumper as shown in the figure below, set the circuit board to DFU mode (device firmware upgrade), and then press the "reset" button.
PIC03 04
Set up STM32 on Arduino IDE
Open the Arduino IDE and select preferences.
PIC05
Click the "Other Board URL" option and add this URL after the comma:
http://dan.drown.org/stm32duino/package_STM32duino_index.json
PIC06. 07
Then click Tools→Boards→Board Manager.
PIC08
After performing the above steps, you can see STM32 in the board list. Now select STM32F103C.
PIC09
Because we use the UART module to upload code, we choose Upload Method as Serial.
PIC10
Select Blink sketch from the example.
PIC11
Use "PC13" to change the LED pin number, as shown in the screenshot below. This is the name of the built-in LED in the circuit board
PIC12
Project source code
void setup() {
// change pin PC13
pinMode(PC13, OUTPUT);
}
//infinite loop
void loop() {
digitalWrite(PC13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(PC13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Upload the code to the Arduino IDE
Upload the code now.
PIC13
Uploaded successfully!
in conclusion
If the program has been uploaded successfully, you should see the green LED flashing at 1 second intervals. You can also use this program to increase or decrease the delay of the LED lights.
After uploading the program, you should change the jumper back to the normal mode so that the uploaded program will automatically start to execute when the circuit board is turned on next time.
PHOTO GALLERY
→
←
PIC01
PIC02
PIC03
PIC04
Noob 19129
about 1 year agoPlease try a hrefhttpswwwgooglecomGooglea before asking about a hrefhttpsmikeschilloutblogcaforumindexphptopic1newnewCool Product Guidea 057980
Noob 19129
about 7 months agoPlease try Google before asking about Best Product Blog 7057981
Noob 19129
about 6 months agoTo the lady talking about akun togel slot, cara daftar togelup, rupiah togel, bo togel deposit 10 ribu, as toto togel, dapat 4d, bandar togel terbesar dan terpercaya, togel yang bagus, togel online 24 jam, bandar judi togel online, I highly suggest this the full details about 7RAJATOGEL link or togel play slot, link alternatif toto macau, situs togel 2d, cara buat akun togel singapore, indonesia togel, situs bandar slot terpercaya, cara bermain togel hk, link slot toto, situs togel resmi dan terpercaya, togel unggulan, and don't forget this best 7rajatogel Login advice and don't forget gopay toto, 10 bandar online togel terpercaya, nama situs slot 4d, situs toto sgp, daftar toto slot, link bandar togel, togel 4d, slot bandar togel, net 4d, togel resmi, and don't forget this she said for 7RAJATOGEL link which is also great. Also, have a look at this moved here for 7RAJATOGEL link and don't forget situs judi togel dan slot online, togel lengkap pasaran, situs toto org login, main togel online, daftar togel resmi online, bandar togel aman dan terpercaya, situs togel dan slot resmi, situs resmi dewa togel, togel link alternatif, bandar judi togel online terpercaya, and don't forget this find about 7rajatogel Login tips with toto 4d slot login, toto judi slot, agen live togel, 10 situs togel terbesar, bandar togel deposit pakai dana, toto togel resmi, bandar togel pakai dana, togel 4 d, bandar slot dan togel, togel slot online resmi, for good measure. Check more @ New Tajir4D Slot Guide 6c4aa02
Noob 19129
about 6 months agoPlease try [url=https://www.google.com/]Google[/url] before asking about [url=https://angelelite.de/showthread.php?tid=862&pid=31403#pid31403]High Rated Product Site[/url] f79e0b5
Noob 19129
about 5 months agoFor the people talking about agen slot pragmatic, game slot jackpot, live casino bonus, situs bandar judi slot online, slot game asia, agen judi slot online terpercaya, web judi togel, judi slot88 online, company slot, slot88 login online, I highly recommend this [url=https://alexisyksz99876.tblogz.com/best-news-to-selecting-dvltoto-slot-websites-41515314]useful DVLTOTO advice[/url] or ion casino, slot s, link ion casino, agen slot asia, situs bandar judi slot online, game judi, link judi slot online terbaru, judi slot online pragmatic play, situs agen judi slot online, jili slot rtp, on top of this [url=https://tysonpxdi79134.corpfinwiki.com/8199626/recommended_info_to_picking_dvltoto_slot_websites]new DVLTOTO SLOT forum[/url] not to mention pragmatic slot88, slot 7, slot online slot, bandar slot singapore, judi online 4d, 1 sbo slot online, game judi jackpot, eleven 4d slot, bandar slot pragmatic play, judi slot online pragmatic play, and don't forget this [url=https://jarediznc24567.creacionblog.com/27117347/good-facts-to-picking-dvltoto-slot-websites]great DVLTOTO tips[/url] which is also great. Also, have a look at this [url=https://shanevbyq73849.mdkblog.com/32859276/handy-suggestions-on-selecting-a-win1000x-website]new DVLTOTO details[/url] on top of aman judi slot, daftar bandar judi, live22 slot, login game slot, spin deposit, bandar slot idn, macau casino online, jackpot judi slot online, game slot login, main casino slot, alongside all this [url=https://garrettumub82102.theblogfairy.com/26955077/new-reasons-on-choosing-a-win1000x-site]best DVLTOTO link[/url] with slot online judi, situs judi slot online pragmatic play, agen judi casino online indonesia terpercaya, playtech slot indonesia, flow gaming slot, permainan casino online, macau rtp, slot online indonesia, agen play, bandar judi slot, for good measure. Check more @ [url=https://rostovbike.ru/thread-937-post-13986.html#pid13986]Top Asian Escorts Info[/url] 982_506
Noob 19129
about 4 months agoTo the person inquiring about slot gacor terbaru pragmatic play, permainan slot online, indoasia slot, gacor jaya, hoki slot, waktu slot, situs slot88, situs logo slot, slot online slot88, link masuk slot, I highly suggest this [url=https://dantejqng39507.wikipowell.com/5485013/handy_advice_to_choosing_aman88slot_websites]learn more here for Aman88Slot details[/url] or aplikasi pragmatic slot, wild slot88, ninja hoki slot, slot 88 gacor, selalu slot, permainan online slot, cara login slot online, hot 88 slot, rtp slot cuan88, login gacor, alongside all this [url=https://titushhev96184.wikicorrespondence.com/3602674/great_ideas_for_choosing_aman88slot_sites]published here for Aman88 details[/url] alongside all play slots 88 link alternatif, android slot, permainan slot, 88 slot online, nex4d slot, koi slot 88 login, hoki link, situs slot logo, satu slots, login gacor, and don't forget this [url=https://zionqaiq65443.yourkwikimage.com/719928/best_info_for_selecting_aman88slot_websites]awesome Aman88Slot tips[/url] which is also great. Also, have a look at this [url=https://dominickhwdl87668.bloggadores.com/27102660/best-facts-on-choosing-aman-88-slot-sites]new Aman 88 Slot blog[/url] and don't forget pp slot, e games slot, slot indonesia, pragmatic play id, slot slot online, rtp dalam slot, slot idr, koi cuan slot, cuanslot88 net, game lucky, and don't forget this [url=https://troyaksj36923.wikilowdown.com/6115319/top_news_on_selecting_aman88slot_websites]funny post on Aman 88 Slot url[/url] with slot masuk, permainan online slot, online slot gacor, slot dan rtp, mega slot online, game slot game, play play slot, slot slot88, web gacor slot, slot poker, for good measure. Check more @ [url=https://culvergame.com/forum.php?mod=viewthread&tid=70&pid=2659&page=5&extra=#pid2659]Excellent Ligmar Guide[/url] 9a70579
Noob 19129
about 4 months agoIn reply to the guy asking about bar signs.co.uk, pub sign maker, beer signs for man cave, great pub signs, pub sign, get outta my pub sign, personalised hanging bar sign, personalised outdoor bar signs, licensee of a public house, hanging home bar signs, I highly recommend this [url=https://felixtfqa96419.shoutmyblog.com/27201761/excellent-info-to-picking-bar-signs]useful window vinyl signs advice[/url] or personalised pub signs uk, pub signs to buy, gin palace signs, army signs, signs custom, chalk pub sign, personalised garden bar signs, sign for garden bar, elland road sign, raf signage, on top of this [url=https://griffinwphw98653.wikiexpression.com/3294032/best_reasons_on_choosing_gin_bar_signs]great window vinyl signs forum[/url] and don't forget personalised bar signs, personalised hanging bar sign, custom window vinyl, manchester road sign, pub signs made, signs for sheds, gin signs for bar, chalk scoreboard, funny shed signs, bar signs.co.uk, on top of this [url=https://claytonisyc46789.dailyhitblog.com/32903651/handy-reasons-on-deciding-on-pub-signs]on front page for hanging signs site[/url] which is also great. Also, have a look at this [url=https://johnnynsus99999.ttblogs.com/7003936/free-news-for-picking-personalised-pub-signs]excellent personalised pub signs details[/url] as well as old pub signs for sale, home garden bar signs, outdoor personalised bar signs, pub chalk sign, bar chalkboard, only fools and horses pub, home pub signs, pub food signs, man cave sign, pub bar signage, as well as this [url=https://lukaslquv13456.plpwiki.com/6045235/free_info_to_selecting_gin_bar_signs]your input here about personalised pub signs forum[/url] with shed names, nags head pub sign, pubs signs uk, pub signs uk buy, irish sign company, custom home bars for sale uk, home bar names, bar sign outdoor, personalised metal bar signs, coaching mentor, for good measure. Check more @ [url=https://beatfoundation.com/phpBB3/viewtopic.php?f=1&t=1784&p=341199#p341199]Awesome Low-code Platform Site[/url] 81_942b
Noob 19129
about 4 months agoTo the guy talking about dr william orthodontist, colourless braces, braces financing options, pediatric orthodontic, central orthodontic, cheap orthodontist for braces near me, braces treatment cost, perfect orthodontics, braces no insurance near me, doctor of braces, I highly suggest this [url=https://cursos.fixtech.com.br/forum/member.php?action=profile&uid=17398]experienced for Limestone Hills Orthodontics tips[/url] or specialists in orthodontics, consultation for orthodontist, invisalign connecticut, metal and ceramic braces, braces on benefits, braces with payment plan near me, clear braces, metal teeth aligners, braces for long teeth, cheap teeth straightening near me, on top of this [url=https://carson3s62wpg8.wikibriefing.com/user]awesome Limestone Hills Orthodontics site[/url] as well as white braces, choosing an orthodontist, arch braces, ceramic braces types, difference between metal braces and invisalign, best place for braces, cheapest place for braces near me, brayces near me, smile solutions orthodontics, orthodontist financing options, alongside all this [url=https://forumhellas.freha.pl/member.php?action=profile&uid=102]awesome Limestone Hills Orthodontics advice[/url] which is also great. Also, have a look at this [url=https://evan6t73him4.goabroadblog.com/profile]one-time offer on Limestone Hills Orthodontics url[/url] on top of smile more orthodontist, braces metal, orthodontic questions and answers, lifetime orthodontics, braces for teens near me, orthodontist north austin, the brace place reviews, straight smiles ortho, looking for orthodontist, cheapest place to get braces near me, as well as this [url=https://kevin3r49net3.estate-blog.com/profile]learn more here for Limestone Hills Orthodontics info[/url] with braces with insurance near me, brace place reviews, orthodontic care near me, clear ceramic braces near me, famous orthodontist, state orthodontics, star invisalign, expensive braces, free braces, austin orthodontist, for good measure. Check more @ [url=http://www.gjerrigforum.com/viewtopic.php?p=380480#380480]High Rated Asian Escorts Blog[/url] a705798