Skip to main content
ST Employee
May 17, 2023

How to use the LPBAM feature: An example using STM32U5 board

  • May 17, 2023
  • 6 replies
  • 5921 views

This article provides guidelines on how to use the LPBAM feature in the STM32U5 series to allow peripherals to be autonomous and optimize the power consumption in STOP2 mode.

The LPBAM stands for low-power background autonomous mode. It is an operating mode available in the STM32U5 products series that allows peripherals to be functional and autonomous in Stop 2 mode independently from the device power modes without any software running.

Two major advantages result from using the LPBAM feature : 

  •  Power consumption is optimized (around 4µA in STOP2) 
  • CPU bandwidth is offloaded (peripheral configuration and transfers are done by DMA) 

The following Wiki article provides LPBAM use cases and a complete example of how to drive LPGPIO with code, scenario configuration, and power consumption measurement. 

This topic has been closed for replies.

6 replies

Associate II
September 13, 2023

LPGPIO example provided is not working @Sarra.S 

Sarra.SAuthor
ST Employee
September 13, 2023

Hello @Gautham19

Could you elaborate on what doesn't work exactly? 

I would be happy to help! 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Associate II
September 13, 2023

@Sarra.S  I have tried it with Nucleo board u575, when tried to debug. When the code reaches the 

MX_LPDMA1_Init(); the debugger connection is lost and no response I tried to track the pin PA1 pin with logic analyzer but pin state is not toggled.
Sarra.SAuthor
ST Employee
September 13, 2023

Hello @Gautham19 

Make sure debug pins PA14 and PA13 are not set to analog. 

Then reset your board and try stepping through the code 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Associate II
September 13, 2023

Hello @Sarra.S ,

Thanks for the debug pin configuration . I made changes with the Debug pin, it is set as analog earlier now I changed to Debug pin.

But the pin toggle is not working, it remains the same.

Associate II
September 15, 2023

Hello @Sarra.S ,

I have configured LPGPIO_PIN_5 as output it is updated in LPGPIO1->MODER, but during run time the LPGPIO1->ODR, LPGPIO1->BSRR, LPGPIO1->BRR is not  getting updated.

Gautham19_0-1694759905360.png