Download the STM32 Cube IDE from https://www.st.com/en/development-tools/stm32cubeide.html
Watch this video tutorial.
Write a program using STM32L476G-DISCO
Step1: Install STM32 Cube IDE
Step2: Create a New Workspace
A workspace is a directory which will contain all your code and library related to your project.
Step 3: click on “Start new STM32 Project” button
Step 4: Select your board “stm32l476G-DISCO”
Step 5: Give your project a name
Do not change any options
Step 6: Select “YES” when prompted for “Initialze all peripheral with their default mode”
It is very important that you select YES other wise it will remove all the associated peripherals and you have to manually add the desired peripherals one by one; which is very difficult for beginners.
After these steps your project is created and it will open a STM32 CUBEMX inside your IDE.
Please watch the video. As there are a lots of steps and instruction which are difficult to explain by writing alone. Video will show you a step by step procedure and give you a basic explainition.
You can now change the option or you can proceed forward and click on generate code. This will create all the required code changes.
Now you can open you “main.c” file inside your IDE and write code.
Leave a Reply