STM32CubeMX and STM32CubeIDE for toggle LED how to with STM32F4xx Nucleo Board coding5

Published: 07 May 2022
on channel: MKRC LABS
7,337
15

STM32 Nucleo boards LED Project
Easy steps learn fast learn smart
Blink LED Blinking LED with STM32CubeMX,STM32CubeIDE,STM32,STM32 Arm, F401RE,STM32 Nucleo boards
Tools installation
install STM32CubeMX
Install STM32CubeIDE
Download STM32CubeL4 Firmware package
launch STM32CubeMX
start project
select MCU board
Pin out Configuration
RCC HSE Bypass to Enable PIn PH0/PH1
LSE Crystal/Ceramic Resonator To Enable PC-14/PC-15
SYS core debug serial wire to Enable PA-13/PA-14
pinout View
Enable PIN-5 GPIO Output For on Board LED
Clock configuration
only change HCLK MHz to 84 press enter
project manager
give name
select Tool chain
Generate project
open project (STM32CubeIDE)
Core Src main.C
type code
while (1)
{
/* USER CODE END WHILE */

/* USER CODE BEGIN 3 */
HAL_GPIO_TogglePin (GPIOA, GPIO_PIN_5);
HAL_Delay (1000);
}
save
Debug
connect your board USB
Run
that it
Subscribe
thank you