- This topic has 3 replies, 2 voices, and was last updated 1 week ago by .
- You must be logged in to reply to this topic.
Home › Forums › The libraries hosted on the site › EByte LoRa e220 UART devices LLCC68 › RTC_DATA_ATTR Failure
Tagged: E220 Deep Sleep, RTC_DATA_ATTR
Gist of E220_Ticker_Test_Receiver.ino
RTC_DATA_ATTR is not saving variables when going to deep sleep.
Trying to create elapsed timer using Ticker library; minuteTicker.attach keeps re-initalizing intterrupt.
Another RTC variable does not work; bootcount is always 1.
I did my best to follow article:
Ebyte LoRa E220 device for Arduino, esp32 or esp8266: WOR microcontroller and esp32 dev v1 shield .
William
Hi Willian,
the code is quite complex, and I need time to check It in depth, but what is the scope of the Ticker library?
Bye Renzo
Hi Renzo,
Thank you for having a look at the code. Yes, the code is complex.
Took another look at my Gist file; found I missed making these corrections: lines: 150 redefination Lora E220, 299, 301, 303 e32ttl should be e220ttl. Testing now…
Ticker library is used to get a one minute timer to take from the start code unit the INA226 alerts for a low battery.
Could be an interrupt conflick; there are (if memory serves me correctly, three interrupts).
William
Update 5/12/2024:
Github repository has been updated. Receiver is now able to go to deep sleep; however have not been able to wake up deep sleeping receiver, unable to further test RTC_DATA_ATTR_failure.
This project code does not use Ticker.
William
More
3D Printer 3D printer upgrade ABB Arduino Arduino IDE Arduino SAMD boards Aurora AWS CNC Cyclone PCB Factory Cyclone PCB Factory how to build It Display DynamoDB E32 EMail esp01 esp32 esp8266 File System Firmware i2c JavaScript Library LoRa MicroPython Milling PCB My PCB Networking PCB pinout Power saving Raspberry Pi REST API RF rp2040 SD Card Sensors Sleep and Wake UP SPI STM32 Storage devices Tutorial Web Server Wemos D1 mini WiFi