cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L476 lowest sleep current with RAM retention

Mich1
Associate III
Posted on June 13, 2018 at 11:18

Hello,

Which is the mode which permits the lowest current with RAM retention for variables?

In this mode which is the current consumption for the STM32L476?

Best regards

Mich

4 REPLIES 4
Nesrine M_O
Lead II
Posted on June 13, 2018 at 11:33

Hi

Le_Mer.Michel

,

The STM32L4 Series implements three Stop modes with full SRAM and Peripheral retention capability (SRAM1, SRAM2 and all registers content are retained)and capacity to wakeup in 1 µs thanks to the use of the MSI up to 48 MHz.

In Standby mode the BOR is always enabled, ensuring that the device is under reset when the supply voltage is below the selected functional threshold. By default the SRAMs content is lost in Standby mode. However, it is possible to preserve the content of the SRAM2 (with an additional current consumption).

I recommend you to have a look to

http://www.st.com/content/ccc/resource/technical/document/application_note/9e/9b/ca/a3/92/5d/44/ff/DM00148pdf/files/DM00148pdf/jcr:content/translations/en.DM00148pdf

application note, Power control (PWR) chapter in your related

http://www.st.com/content/ccc/resource/technical/document/reference_manual/02/35/09/0c/4f/f7/40/03/DM000835pdf/files/DM000835pdf/jcr:content/translations/en.DM000835pdf

andTypical and maximum current consumption in your related

http://www.st.com/content/ccc/resource/technical/document/datasheet/c5/ed/2f/60/aa/79/42/0b/DM001088pdf/files/DM001088pdf/jcr:content/translations/en.DM001088pdf

.

-Nesrine-

Posted on June 15, 2018 at 09:33

Hi Nesrine,

Compared to your competitor we actually use, only the Stop 2 mode is equivalent.

I am only worried about wake up from uart. Is there any solution to wake up with 2 uarts from stop 2 mode? (either a component with 2 LPUART or USART which can wake up from stop 2 but with low baudrate, ???)

Best regards

Mich

Posted on June 15, 2018 at 09:56

Where the message that will wake-up the microcontroller is a known/controlled-by-you format, you might get away with configuring that pin as a trigger input as well, waking up on the leading edge of the start bit.

You will miss the first (few) characters and there is the risk that the UART will use the wrong bit as its start bit and receive rubbish until something like 0xFF is sent.

I was fortunate that the sequence that wakes up my stm32f4 starts 0xbf, 0xff, 0x00, <wanted data> and I find that I can reliably receive my wanted data at 921600 baud running off the internal MSI oscillator.

 - Danish

Posted on June 15, 2018 at 10:37

Hello

Le_Mer.Michel

,

Normal U(S)ART interfacesin STM32L4family can wake up the MCU down to STOP1 mode. They have no capability to wake up the MCU from STOP2/Standby/Shutdown modes.

LPUART has the advantage over the normal U(S)ART that it can wake up the MCU from STOP2 mode.

However STM32L4 MCUs provide only one LPUART, so it is not possible to wake up the MCU from STOP2 mode by two different UART channels.

You can consider scenario mentioned by

Ali.Danish

(thanks for this hint!). This would mean that MCU can be woken up from STOP2 mode:

  • viaLPUART interface by UART data,
  • viaEXTI and immediately after wake up MCU reconfigures EXTI to normal U(S)ART interface in order to receive data.

Regards

Szymon