cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 Minimizing power consumption

qqAnton
Senior

Hello, I design a device, based on STM32L475RE MCU

and my goal is to minimize the power consumption.

Peripheral I use :

  • 3 sensors(accelerometer, temperature, humidity) and external RTC(M41T64Q6F) on I2C bus
  • External flash on SPI
  • USB
  • ADC to read battery level

  1. Would it be better for power consumption to change HSE for MSI, and is it reliable for peripheral I use to work with MSI?
  2. USB is needed really rarely, so is it possible to initialize USB when connected and does it make sense?
  3. How to know that USB is connected?

4 REPLIES 4
TDK
Guru

> 1. Would it be better for power consumption to change HSE for MSI, and is it reliable for peripheral I use to work with MSI?

The datasheet includes detailed breakdown of current consumption by MSI and HSE. In general, MSI uses less power.

0693W00000FC5oeQAD.png 

0693W00000FC5ooQAD.png 

The L475 supports crystal-less USB, but requires an LSE to do so. No other peripheral that you're using needs precise timing.

> 2. USB is needed really rarely, so is it possible to initialize USB when connected and does it make sense?

Makes sense to me.

> 3. How to know that USB is connected?

Connect VBUS to a pin (preferably with resistor divider), and monitor it.

If you feel a post has answered your question, please click "Accept as Solution".
S.Ma
Principal

Depending on your mission profile, you might also try to aim for the lowest working sysclk frequency, which will make you zoom in interrupt latencies and jitter. Most people prefer to bail out by crancking up sysclk instead.

Thank you,

I've created cube mx project to try clock settings and as I understand USB could work even without LSE

It may work, and likely will at ambient temperature, but it’s very much not guaranteed and likely won’t work over the full temperature range.
If you feel a post has answered your question, please click "Accept as Solution".