Contents
How to blink a led with STM32 Nucleo?
I attached an LED to D5 using the Grove shield: Then I created a program that blinks the LED faster and faster: The LED still blinks if I change the pin name from D5 to PB_4 (which is standard STM32 naming): Here’s the video showing the LED blinking:
How to control GPIO pins with HAL library?
HAL GPIO library provides these functions to control, initialize and de-initialize GPIO pins. HAL_GPIO_Init () function initializes the GPIOx according to the input arguments specified to both parameters. Here the GPIOx can be (x=A, B, C…H, I) according to which GPIO port we want to use.
How to blink onboard LEDs on STM32F4 Discovery Board?
To blink onboard LEDs of STM32F4 discovery board with HAL_GPIO_WritePin () function, we can set the crossponding pins for one second and then reset the pins for one second. In this LED blinking code, we used HAL_GPIO_WritePin () function to toggle green, yellow, red and blue LEDs of discovery board.
What’s the name of the led on my microcontroller?
The LED still blinks if I change the pin name from D5 to PB_4 (which is standard STM32 naming): Here’s the video showing the LED blinking: Teach Me Microcontrollers!
Can a STM32 Nucleo be used as a microcontroller?
On the previous tutorial, we managed to create our first program with the STM32 Nucleo board. Now we will dig deeper on the pinout and other functionalities of the board. The ST Nucleo F103RB page on the Mbed website contains information about the Arduino header pins of the board. Here is the top-left side:
How is the nucleo powered by the stlink?
If the stlink is actually broken off, the nucleo should be powered by the stlink, the yellow wire going from the the upper pin of jp1 on the stlink to pin 16 the of the nucleo supplies the 3.3V (the other yellow wire going from nucleo pin 4 to swd/cn4 pin 1 is used by the stlink to measure the voltage).
Which is Arduino header pins does St Nucleo use?
Now we will dig deeper on the pinout and other functionalities of the board. The ST Nucleo F103RB page on the Mbed website contains information about the Arduino header pins of the board. Here is the top-left side: You’ll see that the pin assignments is very much like the Arduino UNO.