Professional Documents
Culture Documents
Student Name:Raunak
Roll Number:2310994547
Branch: ECE
Semester:3rd
TASK - 2.2 C
Hardware Required
STM32 black pill board with in-built LED
Software Required
Arduino IDE, MS-Word.
Task Objective
STM32CubeIDE is an all-in-one multi-OS development tool, which is part of the STM32Cube
software ecosystem. STM32CubeIDE is an advanced C/C++ development platform with
peripheral configuration, code generation, code compilation, and debug features for STM32
microcontrollers and microprocessors. To get comprehensive understanding of STM Cube IDE
and get start with application development work, student need to create first script using
hardware abstraction language and test the system. Create the tutorial for getting started STM32
using STM cube IDE which much contains sufficient information for beginners to successfully
test their system.
Tutorial
In this tutorial, we'll cover the steps to kickstart your journey with the STM32 Black Pill
development board and STM32CubeIDE, culminating in the mesmerizing blink of its on-board
LED using HAL programming. First, we'll set up STM32CubeIDE by downloading and
installing it from the official STMicroelectronics website. Next, we'll dive into configuring the
GPIO pin responsible for controlling the LED. With the GPIO pin properly initialized, we'll craft
code within the main function to toggle the state of the LED in an infinite loop, effectively
creating the blinking effect. Finally, we'll build the project and flash it onto the STM32 Black Pill
board, bringing our creation to life. Through these steps, you'll gain a foundational understanding
of STM32 development, empowering you to explore further and unleash the full potential of this
powerful microcontroller platform.
NOTE
Completing the task of writing a program to blink the on-board LED attached to the STM32 Black Pill
was relatively straightforward within the Arduino IDE. First, I defined the pin associated with the LED.
Then, in the setup function, I initialized this pin as an output. Within the loop function, I toggled the LED
state between on and off with a delay of 1 second each, creating the blinking effect. Compared to the
previous task of integrating the STM32 Black Pill with Arduino IDE, this task was simpler and more
focused on basic Arduino programming concepts. However, both tasks contributed to a deeper