Difference between revisions of "STM32"

From Land Boards Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
* [[STM32 Black Pill]] Board
 
* [[STM32 Black Pill]] Board
  
=== 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.'''
Line 14: Line 14:
  
 
[[File:Blue-vs-Black-Pill-Pin-Layout.png]]
 
[[File:Blue-vs-Black-Pill-Pin-Layout.png]]
 
== Black Pill Programming ==
 
 
=== DFU Programming ===
 
 
* Steps from [https://www.sgbotic.com/index.php?dispatch=pages.view&page_id=49 Programming|Program STM32 Black Pill (STM32F401 / F411) with Arduino IDE (Windows OS)]
 
** Add the URL to Additional Board Manager URLs text box:
 
*** https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json
 
** Go to Tools > Board > Boards Manager
 
** Search for STM32, select latest version and click Install.
 
** Download and install STM32CubeProg from ST.com: [https://www.st.com/en/development-tools/stm32cubeprog.html]
 
** Start the STM32CubeProg
 
** From the Tools > Board > STM32 Board, select Generic STM32F4 series
 
** Select Tools > Board Part Number > BlackPill F411CE
 
** Under USB Support, select CDC (generic "Serial" supersede U(S)ART)
 
** Under Upload method, select SMT32CubeProgrammer(DFU)
 
** Use the onboard BOOT0 and NRST button to put the board into bootloader mode:
 
*** press and hold the BOOT0 button
 
*** press and release NRST (reset) button to power cycle the processor
 
*** release BOOT0 button
 
** Upload sketch
 
 
[[File:Arduino-Programming-Tools-Dropdown.png]]
 
 
=== Other Programming ===
 
 
* ST-LINK V2
 
* [https://www.st.com/en/development-tools/flasher-stm32.html FLASHER-STM32] - STM32 Flash loader demonstrator (UM0462)
 
* From [https://www.st.com/content/ccc/resource/technical/document/application_note/51/5f/03/1e/bd/9b/45/be/CD00264342.pdf/files/CD00264342.pdf/jcr:content/translations/en.CD00264342.pdf AN3155]
 
[[File:SerialPropogramming (AN3155).PNG]]
 
 
== Blue Pill Card Boot Jumpers ==
 
 
[[File:BootJumpers.PNG]]
 
 
=== 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]]
 
 
== Schematic  ==
 
 
=== Blue Pill Card Schematic ===
 
 
[[File:STM32-Schematic.jpg]]
 
 
=== Black Pill Card Schematic ===
 
 
[https://github.com/land-boards/lb-boards/blob/master/Arduino%20Cards/Black-Pill-Hub/Documents/BlackPillBoard/MiniF4x1Cx_V30%20SchDoc.pdf Schematic]
 

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