2023-08-31 10:03 PM - last edited on 2023-11-30 06:45 AM by Amel NASRI
I just started using the stm32cubemx tool and I want to make an application with a STM32WL55 which only wakes up once every day and exchanges one simple LoRa class A message. I need to use as little power as possible.
I get the impression that the least power consuming state from which the unit can wakeup is "standby" (around 300nA), and that the RTC wakeup counter should be used (is that right? There is no way for the RTC or other counter to power on the MCU from 30nA "shutdown" state?)
I'm starting from the LoRaWan application in stm32cubemx. How should I best do this? Can I make "sequencer" steps in the graphical stm32cubemx tool that runs for e.g. 10 seconds and then goes into standby state for 24 hours? Or should I ditch the timer-based sequence steps and explicitly write code that immediately performs the LoRa communication on startup and then immediately goes into standby, waiting for the next RTC wakeup? If so, how can I prevent the LoRaWan from generating periodic timer based code?
Hints appreciated, thanks in advance.
2023-09-04 11:34 AM
Hello @enok and sorry for the late feedback.
According to the reference manual, you can use the shutdown mode.
Then, the best solution will be to write your code to connect to the gateway and send his package directly after the wake-up and then hi can get back to the shutdown mode.
Hope this is helpful for you. If your question is answered please check this answer as best answer to be diffused.
Best regards.
II