Category: Development Kit
-
Mini STM32 V3.0
This development board has an STM32F103RB microcontroller. In this development board, Mini STM32 Schematic Diagram 2.8 inch TFT LCD Schematic You can develop a program for this board using Keil, IAR or STM32 Cube IDE You can program the microcontroller by holding the BOOT0 button and then while holding the boot button pressing the RESET…
-
How to redirect printf() to USART in STM32f103RB using STM32Cube IDE
Printf() function can be redirected to USART and also towards SWO. Here you will see how to redirect printf() to USART in STM32f103RB You need to rewrite this code in your main.c file If you have created your project using STM32CubeMX or STM32 Cube IDE, then you can rewrite it in between USER CODE BEGIN…
-
How to use the ST-LINK/V2-1 in STM32L476G-DISCO Board to program the STM32 on an external application board
Here is the video showing all the steps. ST-Link V2-1 on STM32L476G-Disco Board To use the ST-LINK/V2-1 to program the STM32 on an external application board (out of the STM32L476VGT6 onboard), remove the two jumpers from CN3 as shown in the above figure in red, and connect the board to the CN4 software debug connector…
-
Up Counting Timer using STM32L476
I have created this Upcounting timer using the RTC of STM32L476vgt. In this timer, time will keep on incrementing and it will be displayed using the onboard LCD. How to Read RTC of STM32L476G-DISCO Here is the code that I have used to make this. I have used STM32 CUBE IDE for programming and debugging…
-
How to Read RTC of STM32L476G-DISCO
Create a Project in STM32 CUBE IDE for the STM32L476G-DISCO board. Select LSE as Clock Source for RTC The default option is LSI which uses an internal RC circuit. LSE is the external 32KHz crystal that is provided on the board for the RTC. Activate the Clock source and Calendar This will enable the RTC…
-
How to Perform Discrete Fourier Transform on N-Point Sequence using STM32L476G
x(n) = { 0, 1, 0, 1} Here x(n) is a 4 point sequence Now to perform Fourier transform on this sequence. Here X(k) is the DFT of x(n) ‘k’ is the index representing individual frequency component ‘N’ is the Length of the sample sequence ‘n’ is an index of the element of the sequence…
-
How to add CMSIS DSP Library to STM32 Cube IDE Project for stm32l476vg
To add CMSIS DSP library in you stm32cube project. You can follow the steps written on ST’s website Configuring DSP libraries on STM32CubeIDE I have also made a video. In this video. I have shown steps to add the arm_math.h header file. You need to configure the stm32 cube ide.
-
How to use LCD Driver of STM32L476VGT on STM32L476 Discovery
To use the internal LCD driver of stm32l476; the best way is to use the LCD driver provided in the BSP. It is located inside the STM32Cube_FW_L4_V1.16.0 repository. Go to the..\STM32Cube\Repository\STM32Cube_FW_L4_V1.16.0\Drivers\BSP\STM32L476G-Discovery Copy the stm32l476g_discovery.c, stm32l476g_discovery.h, stm32l476g_discovery_glass_lcd.c and stm32l476g_discovery_glass_lcd.h Paste the files in your project. Include the header file in your project.#include “stm32l476g_discovery_glass_lcd.h” After this you…
-
How to use printf using serial wire debug on STM32L476 Discovery
We all use printf statements for debugging purposes at some point in time. To use print statement. You need to do fuse one solder bridge Fuse the solder bridge number SB14. Always be careful since the solder bridges are very small. After you have done fused the solder bridge. You can configure your project in…
-
How to start a project for STM32L476 Discovery in STM32 Cube IDE
Download the STM32 Cube IDE from https://www.st.com/en/development-tools/stm32cubeide.html Watch this video tutorial. Write a program using STM32L476G-DISCO Step1: Install STM32 Cube IDE Step2: Create a New Workspace A workspace is a directory which will contain all your code and library related to your project. Step 3: click on “Start new STM32 Project” button Step 4: Select…