On our embedded module we notice a strange behaviour when people switch off the power supply. Application is a data logger that logs data on SD and backs up the current the current log file as soon as its max size is obtain. I do not know how and why but in some cases after several weeks or months of use, some of the SD card embedded with the product are corrupted. (I do not know if its during writing to the file or during copying but some of SD cards can not be formatted after file corruption).
To avoid such kind of situations we investigate a backup battery solution that would let the EMX to close and unmount the file system properly. However saving the battery life recquires to shutdown the board after closing and unmounting the board. The board consumes about 230mA at runtime and 100mA during Hibernation therefore hibernate is not the solution. Is there a method that we can call to shutdown entirely the EMX?