foxsi / foxsi-4matter

Code for FOXSI-4 formatter.
https://foxsi.umn.edu/
1 stars 3 forks source link

CMOS SpaceWire lockup on shutdown #61

Open thanasipantazides opened 9 months ago

thanasipantazides commented 9 months ago

The problem

Have only checked this with CMOS 1, but after sending shutdown command to CMOS 1, the SpaceWire bus is tied up and I receive no more SpaceWire data from anybody.

Believe that during shutdown, some data is put on SpaceWire bus by CMOS 1 which cannot be handled by the SPMU-001 router in the Formatter. The Formatter later requests data from all systems, and cannot receive from any.

Should Formatter stop requesting data from a system (in loop) after a shutdown command is sent? Are there risks to this? Would need a way to restart the system (undo ABANDON) later to handle flight power cycle use case.

thanasipantazides commented 9 months ago

Fix should be hard poweroff CMOS. Too risky to try to detect shutdown commands and ABANDON in the loop.