Skip to content

Examples of STM32LowPower for STM32WLE5CCU6 #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DEDP01 opened this issue Jun 6, 2022 · 5 comments · Fixed by stm32duino/STM32RTC#68
Closed

Examples of STM32LowPower for STM32WLE5CCU6 #71

DEDP01 opened this issue Jun 6, 2022 · 5 comments · Fixed by stm32duino/STM32RTC#68
Assignees

Comments

@DEDP01
Copy link

DEDP01 commented Jun 6, 2022

Hello!

I prove the examples (AlarmTimedWakeup, ExternalWakeup and TimeWakeup), the first two examples worked correctly but the last one (TimedWakeup) doesn´t do anything, it only turns on the led and it keeps like that.

The example works correctly or is incompatible or the program has a actualization?

@ABOSTM
Copy link
Contributor

ABOSTM commented Jun 7, 2022

Hi @DEDP01 ,
I tested TimeWakeup example on my Nucleo WL55JC1 and it is working properly, led is toggling every seconds.
My setup:

  • Arduino_Core_STM32 version 2.2.0
  • STM32LowPower version 1.2.0
  • STM32RTC version 1.2.0

MCU STM32WL55JC from my nucleo board is closed to your STM32WLE5CCU6, except that yours is single core.
So it should work on your chip too.

Can you tell us more about your setup ?
which version of the core, and libraries?

I guess you are using variant "Generic WL55CCU", can you confirm ?
By default Generic variants are for boards with only MCU (no led definition, no other external component, ...)
And I guess you have a custom board, thus Generic variant needs to be customized, especially to define which pin to use for the LED (LED_BUILTIN used in the example).
So did you do so ? can you give us details ?
If needed:
https://github.com/stm32duino/wiki/wiki#customization
https://github.com/stm32duino/wiki/wiki/Add-a-new-variant-%28board%29

@DEDP01
Copy link
Author

DEDP01 commented Jun 7, 2022

Can you tell us more about your setup ?

Yes, my setup:

  • STM32 MCU based boards version 2.2.0
  • STM32LowPower version 1.2.0
  • STM32RTC version 1.3.0

I guess you are using variant "Generic WL55CCU", can you confirm ?
No , the variant is Generic WLE5CCUx

Yes, I customized the output, in my case LED_BUILTIN I changed to PB5.

#include "STM32LowPower.h"

void setup() {
  // in  my case the pin is PB5.
  pinMode(PB5, OUTPUT);
  LowPower.begin();
}

void loop() {
  digitalWrite(PB5, HIGH); //only the led keeps on.
  LowPower.deepSleep(1000);
  digitalWrite(PB5, LOW);
  LowPower.deepSleep(1000);
}

@ABOSTM
Copy link
Contributor

ABOSTM commented Jun 8, 2022

Can you check whether after sketch is loaded in Flash, unplug/plug of PowerSupply make a difference ?

@DEDP01
Copy link
Author

DEDP01 commented Jun 8, 2022

I already tried and it still doesn't work

ABOSTM added a commit to ABOSTM/STM32RTC that referenced this issue Jun 13, 2022
The fact RTC is already configured or not,
is handled by begin() itself.
Fixes stm32duino/STM32LowPower#71

Signed-off-by: Alexandre Bourdiol <[email protected]>
@ABOSTM
Copy link
Contributor

ABOSTM commented Jun 13, 2022

@DEDP01,
I proposed a fix in RTC library: stm32duino/STM32RTC#68
You can test it if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants