User Tools

Site Tools


arduino:stm32_blue_pill

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
arduino:stm32_blue_pill [2019/10/02 13:40]
mithat [Pinout]
arduino:stm32_blue_pill [2019/11/05 21:55] (current)
mithat
Line 4: Line 4:
  
 ===== Setup ===== ===== Setup =====
- 
-==== Arduino environment ==== 
- 
-Do once: 
- 
-  * Under //Files > Preferences//,​ add to the "​Additional Boards Manager URLs:" field: ''​http://​dan.drown.org/​stm32duino/​package_STM32duino_index.json''​((It [[https://​github.com/​stm32duino/​Arduino_Core_STM32#​getting-started|looks like]] the URL for the boards has changed to ''​https://​github.com/​stm32duino/​BoardManagerFiles/​raw/​master/​STM32/​package_stm_index.json''​.)) 
-  * Under //Tools > Board > Boards Manager ...//, find "​**STM32F1xxx/​GD32F1xxx boards** by stm32duino"​ and install it. 
  
 ==== Hardware ==== ==== Hardware ====
  
-In addition to your "Blue Pill," you will also need a **3.3V USB to serial converter**. I used a [[https://​www.sparkfun.com/​products/​14050|SparkFun Serial Basic]] configured for 3.3V. Only the power, ​TX and RX pins will be used, so you should be able to use a standard FTDI board as well.+In addition to "Blue Pill," you will need a **3.3V USB to serial converter**. I used a [[https://​www.sparkfun.com/​products/​14050|SparkFun Serial Basic]] configured for 3.3V. Only the TX and RX pins and, optionally, power will be used, so you should be able to use a standard FTDI board as well.
  
 <WRAP center important 90%> <WRAP center important 90%>
-Some serial converter boards put out 5V as VCC even when set to 3.3V mode. Be careful!+Be careful! ​Some serial converter boards put out 5V as VCC even when set to 3.3V mode. Applying 5V to the 3.3V main supply line of a Blue Pill will kill it. 
  
-Applying 5V to the 3.3V main supply line of Blue Pill will kill it+Lots of pins on the STM32F103C8T6 are purported ​to be 5V tolerant, but the main DC isn't. I don't know if TX/RX are.
  
 There is a 5V input on the Blue Pill and a USB connector that can power the board from 5V. These go through a small 3.3V regulator. There is a 5V input on the Blue Pill and a USB connector that can power the board from 5V. These go through a small 3.3V regulator.
- 
-Lots of pins on the STM32F103C8T6 are purported to be 5V tolerant, but the main DC isn't! I don't know if TX/RX are. 
 </​WRAP>​ </​WRAP>​
  
-  * Connect ​VCC and ground from the serial converter board to the ''​3.3'' ​and ''​GND'' ​pins of the Blue Pill (or ''​5V'' ​and ''​GND''​ if your serial converter board puts out 5V even in 3.3V mode). +  * Connect ground from the serial converter board to the ''​GND''​ pins of the Blue Pill. 
-  * Connect the serial converter'​s RX to the Blue Pill'''​A9'' ​and TX to ''​A10''​.+  * Connect the serial converter's RX to the Blue Pill'''​A9''​
 +  * Connect the serial converter'​s TX to the Blue Pill'''​A10''​
 +  * If you will be powering the Blue Pill from the serial converter board, connect VCC from the serial converter board to the ''​3.3''​ pin of the Blue Pill (or ''​5V''​ if your serial converter board puts out 5V even in 3.3V mode). 
 + 
 +==== Arduino environment ==== 
 + 
 +Do once: 
 + 
 +  * Under //Files > Preferences//,​ add to the "​Additional Boards Manager URLs:" field((It [[https://​github.com/​stm32duino/​Arduino_Core_STM32#​getting-started|looks like]] the URL for the boards has changed to\\ ''​https://​github.com/​stm32duino/​BoardManagerFiles/​raw/​master/​STM32/​package_stm_index.json''​. However, this list is incompatible with the list at\\ ''​http://​dan.drown.org/​stm32duino/​package_STM32duino_index.json''​.)):​\\ ​''​http://​dan.drown.org/​stm32duino/​package_STM32duino_index.json''​ 
 +  * Under //Tools > Board > Boards Manager ...//, find "​**STM32F1xxx/​GD32F1xxx boards** by stm32duino"​ and install it.
  
 ==== Project config ==== ==== Project config ====
arduino/stm32_blue_pill.1570023656.txt.gz · Last modified: 2019/10/02 13:40 by mithat