Try to run basic example of TimedWakeup.h , from examples library ArduinoLowPower librairie and get this:
It's look like a library is missing, but I don't have a clue wich one....
RESULTS:
saisissez ou collez du code icic:\Users\18193\Dropbox\dossier commun\R&D\Arduino\libraries\Arduino_Low_Power\src\nrf52\ArduinoLowPower.cpp:31:1: error: 'nrf_lpcomp_input_t' does not name a type; did you mean 'nrf_gpio_pin_input_t'?
31 | nrf_lpcomp_input_t aPin[]={NRF_LPCOMP_INPUT_1, NRF_LPCOMP_INPUT_2, NRF_LPCOMP_INPUT_4, NRF_LPCOMP_INPUT_5, NRF_LPCOMP_INPUT_6, NRF_LPCOMP_INPUT_7};
| ^~~~~~~~~~~~~~~~~~
| nrf_gpio_pin_input_t
c:\Users\18193\Dropbox\dossier commun\R&D\Arduino\libraries\Arduino_Low_Power\src\nrf52\ArduinoLowPower.cpp: In member function 'void ArduinoLowPowerClass::enableWakeupFrom(wakeup_reason, uint32_t, uint32_t, uint32_t)':
c:\Users\18193\Dropbox\dossier commun\R&D\Arduino\libraries\Arduino_Low_Power\src\nrf52\ArduinoLowPower.cpp:111:3: error: 'detect_mode' was not declared in this scope
111 | detect_mode mode;
| ^~~~~~~~~~~
c:\Users\18193\Dropbox\dossier commun\R&D\Arduino\libraries\Arduino_Low_Power\src\nrf52\ArduinoLowPower.cpp:112:16: error: 'DOWN' was not declared in this scope
112 | if(option == DOWN)
| ^~~~
c:\Users\18193\Dropbox\dossier commun\R&D\Arduino\libraries\Arduino_Low_Power\src\nrf52\ArduinoLowPower.cpp:113:4: error: 'mode' was not declared in this scope; did you mean 'modf'?
113 | mode = DOWN;
| ^~~~
| modf
Using library Arduino Low Power at version 1.2.2 in folder: C:\Users\18193\Dropbox\dossier commun\R&D\Arduino\libraries\Arduino_Low_Power
exit status 1
Hi @lucharbour. The only nRF52-based board supported by the "ArduinoLowPower" library is the retired "Arduino Primo. This error is expected when you attempt to use the library when compiling for any other nRF52-based board:
So you should look for another solution for implementing low power code in your Arduino sketches. You can start by searching the Arduino IDE Library Manager to see if a 3rd party library is available with the desired capabilities.
Thank you for your help.
I do indeed tried multiple librairies.
the one that seem to work best is
include <Arduino_nRF5x_lowPower.h>
I don' have compilation error with that one. But I still cannot make the program work....
All seem to run correctly exept when I expect the system to stop, or sleep, Meanning after the command
sd_app_evt_wait();
The program keep on running as it this line does'nt exist..
nothing about that work. I really think that it has to do with some flag left On by other process. I need to find a way to clear all pending flag from any process but I struggle to find them all. I try to limit all application but even if I try a basic program that do nothing but going into sleep, it look like there is many ghost process in background.