Basic tutorial for blinking led for STM32F411
2023-04-08
- I bought my board here
- Spec is below. 128KB Ram + 512 KB Rom, 100Mhz MCU. Refer to https://stm32-base.org/boards/STM32F411CEU6-WeAct-Black-Pill-V2.0.html
- JTag setup like this
Tutorial: Create the project
Step 1: Open STM32IDE, create the project, choose the right MCU
Step 2: Type in project name
Step 3: This is project structure
Step 4: LED is assign to PC13, set it to GPIO output
Then it will generate the setup code
Step 5: Blink the led in main, there is two while(1) loop, change the one in main method
Step 6: Run the project
Step 7: If your jtag is not update, it will popup this windows. If the upgrade button is dim, replug the jtag again in your usb