Atollic TrueStudio-Switch on the LED by Pressing the Push Button Using STM32L100
by embedotronics in Circuits > Microcontrollers
1090 Views, 4 Favorites, 0 Comments
Atollic TrueStudio-Switch on the LED by Pressing the Push Button Using STM32L100
In this tutorial of STM32 I'm going to tell you about how to read a GPIO pin of STM32L100, so here I'll make one on board Led glow by just pressing the push button
Software Used:
These are the software we have used for this project:
1. Atollic TrueSTUDIO: Atollic® TrueSTUDIO® for STM32 is a flexible and extensible development and debugging IDE for STM32 MCU developers who want extremely powerful tools to aid in development of high-quality embedded software. TrueSTUDIO® is based on open standards (ECLIPSE and GNU) and extended with professional features for code management and advanced system analysis. This gives a unique insight into the structure and the dynamic behavior of the system.
You can download this software from this link
2. STM32CubeMX: STM32CubeMX is a graphical tool that allows a very easy configuration of STM32 microcontrollers and microprocessors, as well as the generation of the corresponding initialization C code for the Arm® Cortex®-M core or a partial Linux® Device Tree for Arm® Cortex®-A core), through a step-by-step process.
You can download this software from this link
Components Used:
There is only one hardware we have used in this tutorial:
1.32L100CDISCOVERY: The 32L100CDISCOVERY helps you to discover the features of the STM32L100 Value Line 32-bit Cortex®-M3 microcontrollers and to develop your applications easily. It includes everything required for beginners and experienced users to get started quickly.
Based on the STM32L100RCT6 , it includes an ST-LINK/V2 embedded debug tool, LEDs, pushbuttons for easy connection of additional components and modules.
Code:
As we have created the code with the help of STM32CubeMX, so here I'm sharing you the main.c file.
you can get the main.c file from below link
Downloads
Working Principle and Video:
Here first you need to open up the STM32CubeMX then you need to chose the right board or mcu if you are using a customized board.
For whole process please watch our embed video. The whole Project Description is given in above video
If you have any doubt regarding this project feel free to comment us below. And if you want to learn more about embedded system you can visit our youtube channel
Please visit and like our Facebook Page for frequent updates.
Thanks & Regards,
Embedotronics Technologies