Skip to main content
Home
The Baheyeldin Dynasty
The journey for wisdom starts with knowledge
  • Home
  • About
  • Site Map
  • Contact

Installing Arduino IDE for STM32F103 boards

  1. Home

By Khalid on 2017/12/26 - 22:03, last updated 2017/12/26 - 22:15

If you want to use the Arduino IDE for STM32F103 boards, you need to do the following.

The instructions are for Linux, but it is just downloading, extracting and renaming, so you can use similar steps for Windows of Mac OS/X.

Install the Arduino IDE

First, go to the Arduino web site

Select your platform, and download

Extract the IDE

tar xJvf ~/Desktop/arduino-1.8.5-linux64.tar.xz

Rename the directory

mv arduino-1.8.5 arduino

Install the ARM Cortex M3 compiler toolchain

To do this, go to Tools -> Board -> Board, then Board Manager, type "Due".

Install STM32duino

Then download STM32duino

wget https://github.com/rogerclarkmelbourne/Arduino_STM32/archive/master.zip

Unzip and rename the directory

cd ~/arduino/hardware/
unzip ~/Desktop/master.zip
mv Arduino_STM32-master/ Arduino_STM32
rm ~/Desktop/master.zip

From Tools -> Board -> Board -> Board Manager select your board.

For example if you have an STM32F103ZET6, select: STM32F103Z

If you have an STM32F103VET6, select: STM32F103V

Then under Variant, make sure you select STM32F103VE or STM32F103ZE.

If you do not select the proper variant, then you may get an error about no space on flash.

Installing the DigitalWriteFast Library

If your project requires the DigitalWriteFast library, you need to do the following:

cd ~/Desktop
wget https://github.com/watterott/Arduino-Libs/archive/master.zip
cd Arduino/libraries/
unzip ~/Desktop/master.zip
mv Arduino-Libs-master/digitalWriteFast/ .
rm -rf Arduino-Libs-master/
rm ~/Desktop/master.zip

That is it! You can now use Arduino for STM32F103 boards.

Note on STM32F405RG boards

The above works for STM32F103 boards, which has full support in STM32duino.

For STM32F405 boards, you need to use Koduino.

First download Koduino

wget https://github.com/avikde/koduino/archive/master.zip

Then install and rename the library

cd ~/arduino/hardware/
unzip ~/Desktop/master.zip
mv koduino-master/ koduino
rm ~/Desktop/master.zip

Note that Koduino has a different API than STM32duino. So your code may need to change if you plan to run it on different boards.

Contents: 
Linux
  • Add comment

Current

Pandemic

  • COVID-19
  • Coronavirus

Search

Site map

Contents

  • Family
    • Khalid
    • Ancestry
    • Extended
  • Friends
  • Nokat نكت
  • Writings
    • Cooking
    • Culture
    • Science
    • History
    • Linguistics
    • Media
    • Literature
    • Politics
    • Humor
    • Terrorism
    • Business
    • Philosophy
    • Religion
    • Children
  • Technology
    • Linux
    • Arabization
    • Drupal
      • Association
    • Software
    • Internet
    • Technology in Society
    • Digital Archeology
    • NCR History
    • MidEast Internet
    • Programming
    • Saudi ISPs
    • Miscellaneous
  • Places
    • Canada
      • Weather
    • Egypt
      • Cuisine
      • Alexandria
      • E.G.C.
    • USA
    • Saudi Arabia
  • Interests
    • Astronomy
    • Fishing
    • Photography
    • Snorkeling
    • Nature
    • Photomicroscopy
  • Miscellany

In Depth

  • al-Hakim bi Amr Allah: Fatimid Caliph of Egypt الحاكم بأمر الله
  • Alexandria, Egypt
  • Arabic on the Internet
  • Articles on the history of Muslims and Arabs in the Iberian Peninsula تاريخ المسلمين و العرب في الأند
  • DIY GOTO Telescope Controller With Autoguiding and Periodic Error Correction
  • E.G.C. English Girls College in Alexandria, Egypt
  • Egyptian Cuisine, Food and Recipes مأكولات مصرية
  • George Saliba: Seeking the Origins of Modern Science?
  • Internet Scams and Fraud
  • Mistaken for an Arab or Muslim: Absurdities of being a victim in the War on Terror
  • Mistaken Identity: How some people confuse my site for others
  • One People's Terrorist Is Another People's Freedom Fighter
  • Overview of Google's Technologies
  • Photomicroscopy
  • Pseudoscience: Lots of it around ...
  • Resources for using Google Adsense with Drupal
  • Rockwood Conservation Area, Southern Ontario
  • Selected Symbolic Novels And Movies
  • Snorkeling the Red Sea near Jeddah
  • Updates and Thoughts on the Egyptian Revolution of 2011

Recent Content

Most recent articles on the site.

  • FYSETC S6 3D Printer Board for OnStep Telescope Controller
  • The Rise Of Right Wing Violence And Terrorism In The USA And The West
  • Evidence Against Ivermectin Efficacy For COVID-19
  • Alazraqui: an Arab family name from Argentina
  • Ubuntu Pro Annoying Ads When Executing The apt Command
more

Most Comments

Most commented on articles ...

  • Another scam via Craigslist: offering more than asking price
  • Warning to female tourists thinking of marrying Egyptians
  • Craigslist classified for used car: Cheque fraud scam
  • Winning the lottery scam email: World Cup South African lottery
  • Email Scam: BMW 5 Series car and lottery winning
more

About Khalid

Various little bits of information ...

  • Khalid Baheyeldin: brief biography
  • Presentations and Talks
  • Youtube Videos
  • GitHub Projects
  • Drupal.org Profile
  • Astrophotography @ Flickr

Sponsored Links

Your Link Ad Here

Tags

Android Mobile Ubuntu OnStep Sony OpenWRT Ericsson Router Arabic COVID-19 Rogers Coronavirus GSM Kubuntu 419 Home Assistant Spectrum tablet Telescope Scam App backup Balkanization Comet Conspiracy CPU DIY Firefox Laptop Malta
More

© Copyright 1999-2023 The Baheyeldin Dynasty. All rights reserved.
You can use our content under the Terms of Use.
Please read our privacy policy before you post any information on this site.
All posted articles and comments are copyright by their owner, and reflect their own views and opinions, which may not necessarily be consistent with the views and opinions of the owners of The Baheyeldin Dynasty.

Web site developed by 2bits.com Inc.