PyCubed-Mini / flight_software

Flight Software for the PyCubed-Mini PocketQube platform
https://pocketqube.readthedocs.io/en/latest/
MIT License
3 stars 4 forks source link

Watchdog #54

Open thetazero opened 2 years ago

thetazero commented 2 years ago

Do we want to have a watchdog / does it work

thetazero commented 2 years ago

Watchdog timer exists, not sure if it works

yashika-batra commented 2 years ago

I saw the watchdog timer on the schematic today when I was looking into i2c addresses - I'll send a Slack message to Neil/Gaurav to ask what functionality they want/need on the driver side for it.

thetazero commented 2 years ago

@yashika-batra thoeretically we should have a watchdog timer and theoretically the driver should be doing the appropriate voltage manipulations. But neither of these are confirmed. Please let me know what you find out.

yashika-batra commented 1 year ago

Based on the adafruit docs, it looks like there's a separate watchdog module and a watchdog submodule of the microcontroller module.

I can't find anything specific to the MAX706+ WDT that we're using.

Docs are here: microcontroller.watchdog watchdog

Not sure what functionality we want to implement but this is what we're working with.

thetazero commented 1 year ago

This is probably worth reading for you pycubed watchdog

jbwillis commented 1 year ago

Here's the code that actually interacts with the watchdog. This doesn't seem like a good design as it is likely configuring hardware to feed the dog, so the watchdog has no indication if the flight software is running correctly.

https://github.com/PyCubed-Mini/avionics-motherboard/blob/main/firmware/pycubedminiv03/firmware_build/board.c

jbwillis commented 1 year ago

What I'd rather see is a very simple task that is scheduled to run every iteration of the state machine loop.

thetazero commented 1 year ago

As per our conversation, I agree.