It is not recommended to control the PROGRAMN pin from its own GPIO because the MachXO2 device's GPIO might permanently pull down the PROGRAMN pin. Thus, the device will always be held in reconfiguration state, and will not communicate or be erased to clear the error condition.