STMWLE5CC (RAK3172) Radio End-of-life flag not correctly resetting
Greetings, i am developing a application that will run on a RAK3172 module and i have been attempting to use the radio End-Of-Life flag to detect when the battery supply is too depleted to operate the radio safely.
The base application is the LoRaWAN_End_Node sample with modifications to make it run on a RAK3172 package mounted on a custom PCB.
As the first thing upon entering the main function, i activate the end of life detection enable register with the function (HAL_PWREx_SetRadioEOL) provided to me by the sdk. Then i connected the board to a power supply to simulate different battery charge levels.
To make a long story short, for some reason the EOL flag (in PWR-SR2) remains always set to 1, regardless of:
-enabling or disabling of the EOL enable register
-state of the radio
-supply voltage
Unfortunately this makes the end-of-life detector useless as i cannot discriminate whether or not the battery is sufficiently full to operate the radio safely.
Thanks in advance
