Skip to content

Register corruption causing shutdown and no-boot #60

Description

@DAVe3283

I am experiencing issues nearly identical to #48. There is nothing on the GPIO headers except the LiFePO4wered/Pi3. I am running Raspberry Pi OS 2022-04-04, fully patched.

I am running lifepo4wered-cli get every 60 seconds to log statistics to Home Assistant. But when I run lifepo4wered-cli get over and over, things get corrupted. Here is what happened last night:

  • WAKE_TIME started at 0 then went to 255 (0x00FF) at 19:36, then to 65415 (0xFF87) at 21:04.
  • TOUCH_STATE went from 0 to 15 (0x0F) at 03:13, likely causing the service to shut down the Pi. The button was not actually touched.
  • PI_RUNNING went from 1 to 135 (0x87) at 14:36, then to 255 (0xFF) at 21:04, then back to 135 (0x87) at 21:07, and finally to 0 at 3:13.

All the measured voltages also started reporting garbage at 01:50 this morning:

  • image
  • image
  • image

I don't believe any of those voltages actually changed, as the battery can't jump 1.3 volts in 1 minute, so it is likely the calibration/offset getting corrupted.

If just the daemon is run, the problem doesn't appear to show up (at least not quickly). But when gathering stats, within a day things corrupt and the Pi turns off. And due to WAKE_TIME getting set stupid high, I have to remove the battery to reset the MCU before I can turn the Pi back on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions