OLIMEX / LoRa-STM32WL-DevKIT

STM32WL SOC LoRa / LoRaWAN development board with JTAG debugger and sensors for light, temperature, humidity, pressure, 3-axis digital magnetometer
GNU General Public License v3.0
11 stars 12 forks source link

Power only the STM32WL and not the programmer from battery #2

Open martinjaeger opened 2 years ago

martinjaeger commented 2 years ago

Maybe I did not understand the schematic correctly, but I don't see a way to cut the power supply for the STM32L052 used for programming when the board is run from a battery. This leads to excessive power consumption because:

  1. Two MCUs are powered.
  2. I guess the firmware for the programmer is not optimized for ultra-low power consumption. It even keeps on some LEDs when USB is disconnected.

Is there any way to minimize the power consumption of the board?

martinjaeger commented 1 year ago

@DanKoloff do you have any feedback on this issue?

DanKoloff commented 1 year ago

I think LEDs can be disabled by software means but I have to know the specifics you have in mind.

LoRa-STM32WL-DevKit was meant for easier evaluation of the BB-STM32WL and BB-STM32WL-ANT boards and LoRa designs based on STM32WL chips. The LoRa-STM32WL-DevKit was meant as example of a board of peripherals suitable for the modules. The LoRa-STM32WL-DevKit was not designed for embedding in own products (while it might be possible), BB-STM32WL and BB-STM32WL-ANT were meant for this.

martinjaeger commented 1 year ago

I meant the STM32L052 on the DevKit (used for programming). And the LEDs that are kept on are also the ones on the DevKit.

I understand that the DevKit is not necessarily meant for embedding it into own products. But with the setup at the moment (as far as I understand) it's not possible to evaluate the low-power performance or power the DevKit from the battery as the STM32L052 + the LED will also be powered by the battery so that it will get drained quickly.