Difference between revisions of "STM32"

From Land Boards Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
* [[STM32 Blue Pill]] and [[STM32 Black Pill]] Boards
 
* [[STM32 Blue Pill]] and [[STM32 Black Pill]] Boards
  
 
=== Black Pill Board Features ===
 
 
'''Not pin compatible with Blue Pill due to power pin locations'''
 
 
* Use on [[BLACK-PILL-HUB]]
 
** Can't be used on [[BLUE-PILL-HUB]] card without modifications
 
* [[STM32F4XX|STM32F401CCU6 or STM32F411CCU6 CPU]]
 
** [https://stm32-base.org/boards/STM32F401CEU6-WeAct-Black-Pill-V3.0 STM32F401CCU6]
 
*** 84 MHz CPU clock
 
*** 256 KB Flash
 
*** 64 KB SRAM
 
** [https://stm32-base.org/boards/STM32F411CEU6-WeAct-Black-Pill-V2.0 STM32F411CCU6]
 
*** 100 MHz CPU clock
 
*** 512 KB Flash
 
*** 128 KB SRAM
 
** 3.3V regulator
 
** 2x12-bit, A/D converter
 
** 7-channel DMA controller
 
** SPI, I2C, UART interfaces
 
** 7 timers
 
* SPI ROM footprint
 
** Fits an [https://www.mouser.com/ProductDetail/Winbond/W25Q32JVSSIQ/?qs=qSfuJ%252Bfl/d4PGZSN0WxfCA== W25Q32JVSSIQ]
 
** 32 Mbit SPI Flash ROM,
 
* USB-C
 
* Reset button
 
* Power LED
 
* PC 13 LED
 
* SWD connector
 
* '''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.'''
 
 
[[File:BlackPillBoard-720px.png]]
 
 
* [https://stm32-base.org/boards/STM32F401CCU6-WeAct-Black-Pill-V1.2.html WeAct Black Pill V1.2] - Helpful page
 
 
==== Black Pill Reserved Pins ====
 
 
* PA0 - On-board USER KEY - needs INPUT_PULLUP
 
* PC13 - On-board LED
 
* PB2 - BOOT1
 
** Pulling this pin down by external hardware causes the board to boot to serial
 
** Can be ignored by unplugging USB (power) while holding both reset and BOOT1 buttons on the Black Pill card
 
** Release reset button first
 
* PA11 - USB-M
 
* PA12 - USB-P
 
* PA9 - Serial TX1
 
* PA10 - Serial RX1
 
  
 
=== Blue Pill vs Black Pill Pinout ===
 
=== Blue Pill vs Black Pill Pinout ===

Revision as of 11:55, 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

Arduino IDE

Uploading Code to Blue Pill

  • 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

BluePill Jumper.png

  • In Arduino IDE,
    • Tools
      • Board "Generic..."
      • Upload method: "Serial..."
      • Port: [the comm port]

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

Black Pill Programming

DFU Programming

Arduino-Programming-Tools-Dropdown.png

Other Programming

SerialPropogramming (AN3155).PNG

Blue Pill Card Boot Jumpers

BootJumpers.PNG

Annotated

STM32-Annotated.jpg

Mechanicals

Blue Pill Mechanicals

STM32-Mechanicals-2.jpg

Black Pill Mechanicals

Original-dimensions-STM32F401CCU6 WeAct Black Pill V1.2.png

Schematic

Blue Pill Card Schematic

STM32-Schematic.jpg

Black Pill Card Schematic

Schematic