Category: STM32L476 DISCO

  • 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…

  • Overview of STM32L476 Discovery Kit

    This development board from STMicroelectronics has different peripherals such as an LCD screen, MEMS sensor, USB OTG, Microphone and a 16 MegaByte memory. It has a cr2032 battery socket on the back. So you can use a 3-volt cr2032 battery to power this board. But for that, you have to change the jumper from 3v3…

  • IDE Supporting STM32L476-Discovery

    An IDE combines a range of different tools which are essential for the development of software. Different IDE from different vendors is available. Here are the IDE that I have used. STM CUBE IDEwebsite: https://www.st.com/en/development-tools/stm32cubeide.htmlIt is distribuited freely by ST. You can use this and it has a good device support and newer devices are…