Hi
Here is the update from last time. The problem is chronic and is repeated every one of three shutdown-restart cycle. I believe that the main cause of the error is either daqhat firmware or the daqhat installed programs . The error "can't open device" comes from the daqhat_list_boards which calls mcc172_open() function. Error is created since mcc172_open does not successfully communicate with the Atmel microcontroller in the board. When we look at the mcc172_open() function, there is this comment,
// Initial prototypes had active low reset, and the GPIO signal
// defaults to low. This causes the micro to be held in reset if
// the library has not been opened since booting. In that case, add
// an extra delay for the micro to start.
I think my previous trick (remote GPIO on/off) works since it changes the state and microcontroller is out of reset state.
Below I give you the screen shots for the error. The first one shows the error and the unsuccessful attempt of the firmware update. The second one shows the GPIO states. On the left when there is the error, on the right when the board works appropriately. There are some changes but I am not sure if I can catch any abnormality. The SPI, I2C are both on for all times. Would be great if this problem is solved! I am also giving the links for previously reported same/similar problems.
https://forums.raspberrypi.com/viewtopic.php?t=248153
https://github.com/mccdaq/daqhats/issues/26
https://github.com/mccdaq/daqhats/issues/3
Best Regards