STM32L152-DISCO

From Embedded Workshop
Revision as of 22:19, 19 November 2020 by JMerkle (talk | contribs)
Jump to navigation Jump to search

The STMicro STM32L152-DISCO development board provides a developer a low power processor with an LCD segment display,
a user defined button, a capacitive touch slider, two user defined LEDs - green & blue, and an on-board USB ST-Link JTAG interface.
I've been wanting to dive a little deeper with low power devices, and this appears to be rather good development board for that.

Hardware

STM32L152RCT6 low power processor, 32MHz max, with 16KB RAM, 256KB FLASH
Two pushbuttons Black: Reset, Blue: User defined
Four LEDs LD1 (red/green) for USB communication,
          LD2 (red) for 3.3V power
          LD3 (green) user defined
          LD4 (blue) user defined
Capacitive Touch Sensor - Slider / 4 Buttons

On the backside of the development board are pads for a CR2032 coin cell, directions indicate:
"Solder a B7410AP2L battery holder from LOTES on CR1".  (This battery holder appears to be as scarce as hen's teeth.)

Here are my pad measurements:

After firing up STM32CubeMX, Selecting "STM32L152C-DISCO" from the Boards Select menu, and then clicking "Start Project",
select "YES" when asked to initialize all peripherals with the default Mode.
Go to the Project Manager tab, give the project a name, select "MDK-ARM" for toolchain.
the zip file, "stm32cube_fw_l1_v1100.zip" was downloaded.  This contains all the library files and example code needed to build
projects with this development board.

Example Projects

Example projects can be found in C:\Users\UserName\STM32Cube\Repository
-> C:\Users\Jim\STM32Cube\Repository\STM32Cube_FW_L1_V1.10.2\Projects\32L152CDISCOVERY\Examples


Right after taking the board out of the box, be sure to backup the initial code if you ever want to
restore it.  Use the ST-Link Utility to backup the FLASH memory to a file.
It appeared the program would "flake out" when performing the sleep current measurements.
Pressing the reset button would restart the demo, but it would again "flake out" during sleep current measurements again.
After unplugging the board and reconnecting it, the board resumed "normal functionality".