Difference between revisions of "STM32"

From Land Boards Wiki
Jump to navigation Jump to search
Line 32: Line 32:
 
Can't be used on [[BLUE-PILL-HUB]] card without modifications
 
Can't be used on [[BLUE-PILL-HUB]] card without modifications
  
* STM32F401 or 411
+
* STM32F401CCU6 or STM32F411CCU6
** 100 MHz
+
** 84/100 MHz
 
** 512 KB Flash (most have 128KB)
 
** 512 KB Flash (most have 128KB)
 
** 128 KB SRAM
 
** 128 KB SRAM
Line 41: Line 41:
 
** SPI, I2C, UART interfaces
 
** SPI, I2C, UART interfaces
 
** 7 timers
 
** 7 timers
 +
* I2C EEPROM footprint
 
* USB-C
 
* USB-C
 
* Reset button
 
* Reset button
Line 46: Line 47:
 
* PC 13 LED
 
* PC 13 LED
 
* SWD connector
 
* 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]]
 
[[File:BlackPillBoard-720px.png]]
  

Revision as of 15:04, 2 October 2020

BluePill-P642-cropped-720px.jpg

Blue Pill Board Features

Used on BLUE-PILL-HUB card

  • 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

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
    • 84/100 MHz
    • 512 KB Flash (most have 128KB)
    • 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

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.

BlackPillBoard-720px.png

Blue Pill vs Black Pill Pinout

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

Arduino IDE

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

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

Annotated

STM32-Annotated.jpg

Mechanicals

STM32-Mechanicals-2.jpg

Blue Pill Card Schematic

STM32-Schematic.jpg

Boot Jumpers

BootJumpers.PNG