The RT-Spark board is a small development board powered by the STM32F407ZGT6 microcontroller. In this project, we make a simple LED on the board blink on and off. This helps you learn how to control pins and run basic programs on the STM32 using RT-Thread and STM32CubeIDE.
Materials:RT-Spark Development Board, USB Cable, WIndows PC and Softwares such as STM32CubeIDE. Git, GitHub, Hackster.io
Steps:
1- Download & Install STM32CubeIDE
To download, you must visit the website via the link provided above and make an account to download it or download it as guest, afterwards, install it.
2- Create the Blink Project:
Click Generate Code found in the Project Tab at the very top of the app, click build all at the same tab and proceed to add these two lines of codes in this while function in main.c.
afterwards, find the main.h and addh these define lines:
3- Upload to GitHUB
click the address bar, type and enter cmd, and commit these codes:
git init
git add.
git commit -m "Initial commit: STM32F407ZGT6 Blink LED"
git remote add origin https://github.com/yourname/rt-spark-blink-led.git provide the link of your repository.
git branch -M main
git push -u origin main
Afterwards, ensure that everything else is done
4- Results


Comments