I'm trying to implement a digital output that would hold its state while the microcontroller resets. I'm using a 74hc74 and a Particle Electron board. I can latch in the data, but if I reset the board with a high state on the output of the latch, the latch changes state. The low state is persistent during MCU resets. The worst part is that the flip flop changes state while the RESET pin is active, not during reboot.
What could be the cause ? What is the best practice to implement a persistent output while avoiding unwanted state changes ? (both software and hardware aspects) Should I consider some other type of latch instead ?