8000 Crash into the HardFault_Handler. · Issue #7907 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
Crash into the HardFault_Handler. #7907
Closed
@andywarburton

Description

@andywarburton

CircuitPython version

Adafruit CircuitPython 7.2.0 on 2022-02-24; FeatherS2 with ESP32S2
Board ID:unexpectedmaker_feathers2

Code/REPL

[13:52:08.944] Disconnected
[13:52:09.951] Warning: Could not open tty device (No such file or directory)
[13:52:09.951] Waiting for tty device..
[13:52:11.976] Connected
You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Crash into the HardFault_Handler.
Please file an issue with the contents of your CIRCUITPY drive at 
https://github.com/adafruit/circuitpython/issues

Press any key to enter the REPL. Use CTRL-D to reload.

Behavior

This code runs fine most of the time, successfully reading from sensors, reporting values to HomeAssistant via MQTT and activating the SERVO however it has been crashing at what seems to be random intervals, so to find out what was going on I left it plugged in to my computer for a couple of days with the REPL running (via TIO) and it finally crashed again with the error CircuitPython core code crashed hard. Whoops! and asked me to share the contents of my CIRCUITPY drive here (attached below with credentials removed from secrets.py).

I don't believe it to be a memory issue as I have actually been logging the free memory via gc.mem_free() to HomeAssistant along with the sensor values (seemed like a good way to rule out that as a problem) and memory usage has been relatively consistent over its last run (aside from the big dip overnight, I don't know why that is!)

Screenshot 2023-04-25 at 16 36 46

It wouldn't surprise me if it's something wrong with my code because I'm not an engineer and mostly bodge together other code from tutorials around the internet etc.

Description

No response

Additional information

My circuitpython drive contents with secrets removed:
CIRCUITPY.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0