Difference between revisions of "STM32"

From Land Boards Wiki
Jump to navigation Jump to search
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[File:BluePill-P642-cropped-720px.jpg]]
 
[[File:BluePill-P642-cropped-720px.jpg]]
  
== Blue Pill Board Features ==
+
== Features ==
  
Used on [[BLUE-PILL-HUB]] card
+
* [[STM32 Blue Pill]] Board
 
+
* [[STM32 Black Pill]] Board
* STM32F103
 
** 72 MHz
 
** 64KB Flash (most have 128KB)
 
** 20 KB SRAM
 
** 3.3V regulator
 
** 16 MHz
 
** 1 of x12-bit, A/D converter
 
** 7-channel DMA controller
 
** SPI, I2C, UART interfaces
 
** 7 timers
 
* MicroUSB
 
* Reset button
 
* Download jumper
 
** Replaced with a slide switch
 
* Power LED
 
* PC 13 LED
 
* SWD connector
 
* RTC crystal
 
 
 
[[File:STM32F103C8T6-Blue-Pill-Pin-Layout.gif]]
 
 
 
== Black Pill Board Features ==
 
 
 
'''Not pin compatible with Blue Pill due to power pin locations'''
 
 
 
Can't be used on [[BLUE-PILL-HUB]] card without modifications
 
 
 
* STM32F401CCU6 or STM32F411CCU6 CPU
 
** 84/100 MHz
 
** 256/512 KB Flash (most have 128KB)
 
** 64/128 KB SRAM
 
** 3.3V regulator
 
** 2x12-bit, A/D converter
 
** 7-channel DMA controller
 
** SPI, I2C, UART interfaces
 
** 7 timers
 
* I2C EEPROM footprint
 
* USB-C
 
* Reset button
 
* Power LED
 
* PC 13 LED
 
* SWD connector
 
 
 
[[File:BlackPillBoard-720px.png]]
 
 
 
* [https://stm32-base.org/boards/STM32F401CCU6-WeAct-Black-Pill-V1.2.html WeAct Black Pill V1.2] - Helpful page
 
  
 
== Blue Pill vs Black Pill Pinout ==
 
== Blue Pill vs Black Pill Pinout ==
  
 
* '''Warning: The +5V pins on this board are directly connected to the +5V pin of the USB connector. There is no protection in place. Do not power this board through USB and an external power supply at the same time.'''
 
* '''Warning: The +5V pins on this board are directly connected to the +5V pin of the USB connector. There is no protection in place. Do not power this board through USB and an external power supply at the same time.'''
** Upper right pin is GND on Blue pill card, but is 5V on Black pill card
+
* Upper right pin is GND on Blue pill card, but is 5V on Black pill card
 
* Reset is on a different pin
 
* Reset is on a different pin
 
* Some IO pins are om different spots
 
* Some IO pins are om different spots
  
 
[[File:Blue-vs-Black-Pill-Pin-Layout.png]]
 
[[File:Blue-vs-Black-Pill-Pin-Layout.png]]
 
== Arduino IDE ==
 
 
* [https://github.com/rogerclarkmelbourne/Arduino_STM32 Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards]
 
** [https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki Arduino STM32 Wiki]
 
** [https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki/Installation Installation]
 
* [https://www.instructables.com/id/Programming-STM32-Blue-Pill-Via-USB/ Arduino Alternative - STM32 Blue Pill Programming Via USB]
 
 
=== Uploading Code ===
 
 
* FTDI connection to Blue Pill Hub FTDI connector
 
** FTDI TX (to Blue Pill RX) (PA10 pin on STM32)
 
** FTDI RX (to Blue Pill Tx) (PA9 pin on STM32)
 
* Set Switch (or jumper) on Blue Pill module set towards center of card to upload card to board
 
 
[[File:BluePill_Jumper.png]]
 
 
* In Arduino IDE,
 
** Tools
 
*** Board "Generic..."
 
*** Upload method: "Serial..."
 
*** Port: [the comm port]
 
 
[[File:ArduinoIDE_Tools_Menu.png]]
 
 
* Upload code
 
** Takes a while
 
* Set Switch (or jumper) on Blue Pill module set towards edge of card to run
 
* Press reset button
 
 
== Annotated ==
 
 
[[File:STM32-Annotated.jpg]]
 
 
== Mechanicals ==
 
 
=== Blue Pill Mechanicals ===
 
 
[[File:STM32-Mechanicals-2.jpg]]
 
 
=== Black Pill Mechanicals ===
 
 
[[File:original-dimensions-STM32F401CCU6_WeAct_Black_Pill_V1.2.png]]
 
 
==Blue Pill Card Schematic ==
 
 
[[File:STM32-Schematic.jpg]]
 
 
== Boot Jumpers ==
 
 
[[File:BootJumpers.PNG]]
 

Latest revision as of 12:04, 6 February 2021

BluePill-P642-cropped-720px.jpg

Features

Blue Pill vs Black Pill Pinout

  • Warning: The +5V pins on this board are directly connected to the +5V pin of the USB connector. There is no protection in place. Do not power this board through USB and an external power supply at the same time.
  • Upper right pin is GND on Blue pill card, but is 5V on Black pill card
  • Reset is on a different pin
  • Some IO pins are om different spots

Blue-vs-Black-Pill-Pin-Layout.png