- 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
![](https://peter.quantr.hk/wp-content/uploads/2023/04/image-600x489.png)
- JTag setup like this
![](https://peter.quantr.hk/wp-content/uploads/2023/04/img_1018-450x600.jpg)
Tutorial: Create the project
Step 1: Open STM32IDE, create the project, choose the right MCU
![](https://peter.quantr.hk/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-12.23.44-AM-600x338.png)
Step 2: Type in project name
![](https://peter.quantr.hk/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-12.24.05-AM-600x338.png)
![](https://peter.quantr.hk/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-12.24.15-AM-600x338.png)
Step 3: This is project structure
![](https://peter.quantr.hk/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-12.27.53-AM-600x338.png)
Step 4: LED is assign to PC13, set it to GPIO output
![](https://peter.quantr.hk/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-12.28.19-AM-600x415.png)
Then it will generate the setup code
![](https://peter.quantr.hk/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-12.30.00-AM-600x466.png)
Step 5: Blink the led in main, there is two while(1) loop, change the one in main method
![](https://peter.quantr.hk/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-12.50.10-AM-600x419.png)
Step 6: Run the project
![](https://peter.quantr.hk/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-12.30.30-AM-600x290.png)
![](https://peter.quantr.hk/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-12.30.42-AM-564x600.png)
![](https://peter.quantr.hk/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-12.30.45-AM-547x600.png)
![](https://peter.quantr.hk/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-12.30.49-AM-557x600.png)
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
![](https://peter.quantr.hk/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-12.31.32-AM-600x263.png)