STMicroelectronics / STM32CubeWL

STM32Cube MCU Full FW Package for the STM32WL series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on boards provided by ST (Nucleo boards)
Other
103 stars 53 forks source link

LoRaWAN Class A LowPowerMode #2

Closed krispstack closed 3 years ago

krispstack commented 3 years ago

Hi,

We are using using https://github.com/STMicroelectronics/STM32CubeWL/tree/main/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node to migrate our existing project from STM32L073, Its quite easy to enable LowPowerMode mode in https://github.com/Lora-net/LoRaMac-node/blob/2d5b3f05f31c47ff0f06530c51727ab7e5fe2405/src/apps/LoRaMac/classA/NucleoL073/main.c#L1215

Can you please let us know how to enable LowPowerMode in STM32WL (https://github.com/STMicroelectronics/STM32CubeWL/tree/main/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/LoRaWAN_End_Node)

Thanks

ASELSTM commented 3 years ago

Hi @karthirockz,

Allow me first to thank you for your contribution. Your question has been forwarded to our development team. We will get back to you as soon as we have more details.

With regards,

YoannBo commented 3 years ago

Hi,

LowPower mode are active by default: to change this, you can update LoRaWAN_End_Node\Core\Inc\sys_conf.h

/**

/**

bye

ASELSTM commented 3 years ago

Hi @karthirockz ,

Please allow me to close this thread as no activity has been registered since a month. You can reopen it at any time if you have details to provide us to help you.

Thank you for your comprehension and thank you once more for your contribution

With regards,

aessig commented 3 years ago

Dear @YoannBo following your advice we reach 450uA of consumption, but with the default example "PWR_STOP2_RTC" we go down to 1uA, is there anything we are missing on the example "LoRaWAN_End_Node" to reach the right level of consumption?

YoannBo commented 3 years ago

Hello @aessig ,

By using LoRaWAN_End_Node from CubeWL, not touching anything, you should reach around 2uA (MCU+RTC+Radio in sleep mode) with the Nucleo

Best regards,