Difference between revisions of "STM32CubeMX Setup"

From media_wiki
Jump to: navigation, search
(Created page with "Open STM32CubeMX<br> Select Chip '''STM32F103C8Tx''' and OK at the bottom of page,<br> Under Pinout Tab we will Set up '''I2C, RCC, RTC, USART1'''<br> I2c - Select '''I2C'''<...")
 
 
Line 37: Line 37:
 
----
 
----
 
==[[ STM32F103C8 Class ]]==
 
==[[ STM32F103C8 Class ]]==
 +
==[[ Main Page ]]==

Latest revision as of 19:24, 7 June 2022

Open STM32CubeMX
Select Chip STM32F103C8Tx and OK at the bottom of page,
Under Pinout Tab we will Set up I2C, RCC, RTC, USART1
I2c - Select I2C
RCC - High Speed Clock Crystal/Ceramic Resonator
RCC - Low Speed Clock Crystal/Ceramic Resonator
RTC - Activate Clock Source - RTC OUT - No RTC Output
USART1 - Mode = Asynchronous

STM32-chip-config.png


Set up GPIO Pins
The Generic STM32F103 Pin-out Diagram: http://wiki.stm32duino.com/images/a/ae/Bluepillpinout.gif
Click on Pin labeled PC13 and select from drop down GPIO output.
Right click and select Enter User label and enter REDLED
STM32-GPIO-config.PNG

Atolic TrueSTUDIO 
https://atollic.com/truestudio/
https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-ides/truestudio.html


Setup Arduino STM32 using USB
Youtube Video to follow: https://www.youtube.com/watch?v=J7ctdFaBZ20 
Download Links for each step. Step 1: Download and Setup Arduino IDE: https://www.arduino.cc/en/Main/Software Step 2: Download and Setup STM32 Drivers: https://github.com/rogerclarkmelbourne/Arduino_STM32 Step 3: Download and Setup USB-to-Serial- options a or b. a: USB-to-Serial (PL2303 series) Drivers: https://prolificusa.com/product/pl2303hx-rev-d-usb-serial-uart-bridge-controller/ b: USB-to-Serial (CH340 series) Drivers: c: USB-to-Serial Step 5: Download & Setup USB Boot-Loader: https://github.com/rogerclarkmelbourne/STM32duino-bootloader/tree/master/binaries Step 6: Download Flasher-STM32: https://www.st.com/en/development-tools/flasher-stm32.html

STM32F103C8 Class

Main Page