STM32: Difference between revisions
Jump to navigation
Jump to search
(project header) |
No edit summary |
||
Line 23: | Line 23: | ||
* [http://grauonline.de/wordpress/?page_id=1004 Arduino goes STM32], a quick tutorial | * [http://grauonline.de/wordpress/?page_id=1004 Arduino goes STM32], a quick tutorial | ||
* [https://github.com/rogerclarkmelbourne/Arduino_STM32 Arduino STM32 page of Roger Clark] | * [https://github.com/rogerclarkmelbourne/Arduino_STM32 Arduino STM32 page of Roger Clark] | ||
== Setting up the tool chain == | |||
This describes the steps I did to get a "blue pill" board to work. | |||
=== Arduino IDE === | |||
Steps to set up the IDE: | |||
* get and install the latest Arduino IDE from [https://www.arduino.cc/en/Main/Software here]. | |||
* under menu Tools / Board / Board Manager, search for "zero" and install the Arduino Zero toolchain | |||
* get the Arduino_STM32 source code, for example: | |||
<pre> | |||
cd ~/code | |||
mkdir stm32 | |||
cd stm32 | |||
git clone https://github.com/rogerclarkmelbourne/Arduino_STM32 | |||
</pre> | |||
* create a symlink to the Arduino_STM32 source tree in your ~/Arduino/hardware directory, for example: | |||
<pre> | |||
cd ~/Arduino/hardware | |||
ln -s ~/code/stm32/Arduino_STM32 . | |||
</pre> | |||
* restart the Arduino IDE. |
Revision as of 13:58, 6 November 2016
Project STM32 | |
---|---|
STM32 setup guide | |
Status | Initializing |
Contact | bertrik |
Last Update | 2016-11-06 |
Introduction
This page is about inexpensive microcontroller boards containing an STM32 processor and how to get them to work.
You can find these board on AliExpress for less than E2,- if you search for "stm32f103c8t6". Yet they have nice specifications, see also http://www.st.com/en/microcontrollers/stm32f103c8.html , to name a few:
- 32-bit ARM Cortex-M3 processor running at up to 72 MHz
- 128 kB flash memory, 20 kB SRAM
- USB and CAN controllers
- 32 kHz crystal for RTC
- dual 1 us A/D converter, DMA controller
- the usual stuff like SPI, UART, I2C
They are even Arduino compatible, see:
- Arduino for STM32
- Arduino goes STM32, a quick tutorial
- Arduino STM32 page of Roger Clark
Setting up the tool chain
This describes the steps I did to get a "blue pill" board to work.
Arduino IDE
Steps to set up the IDE:
- get and install the latest Arduino IDE from here.
- under menu Tools / Board / Board Manager, search for "zero" and install the Arduino Zero toolchain
- get the Arduino_STM32 source code, for example:
cd ~/code mkdir stm32 cd stm32 git clone https://github.com/rogerclarkmelbourne/Arduino_STM32
- create a symlink to the Arduino_STM32 source tree in your ~/Arduino/hardware directory, for example:
cd ~/Arduino/hardware ln -s ~/code/stm32/Arduino_STM32 .
- restart the Arduino IDE.