Difference between revisions of "STM32"

From Land Boards Wiki
Jump to navigation Jump to search
Line 14: Line 14:
  
 
[[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 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
 
 
[[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
 
  
 
== Black Pill Programming ==
 
== Black Pill Programming ==

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

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