Step for STM32F446RE Led Blinking - CJZhen96/STM32F446RE-LED-Blinking GitHub Wiki
Welcome to the STM32F446RE-LED-Blinking wiki!
Step for STM32F446RE Led Blinking
-
Download STM32CubeIDE (version 1.6.1) from https://www.st.com/en/development-tools/stm32cubeide.html#get-software.
-
Click File -> New -> STM32 Project to start a new project.
-
In STM32 Project pop out window, in MCU/MPU Selector tab type “STM32F446RE” in Part Number to search the board to be used and the click next.
-
In next window, type the project name and use the default setting, after that click “Finish”.
-
In the “Open Associated Perspective?” window, click “Yes”. Wait for the software package finish downloading.
-
In “Pinout & Configuration”, left click on PA5 and choose as GPIO_Output.
-
In “Project”, click “Generate Code”.
-
In the while loop, type the led blinking code.
while (1) { // led blinking HAL_GPIO_TogglePin(GPIOA,GPIO_PIN_5); HAL_Delay(250); /* USER CODE BEGIN 3 */ } -
Click on hammer icon to build “Debug” for project.
-
Ensure zero error and click Play button to run main.c.
-
In the pop out window, remain the default setting and click “OK”.
-
Observe the LED blinking on the board.