STM32CubeMX Setup
Revision as of 19:24, 7 June 2022 by U731219879 rc (talk | contribs)
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
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
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