Open CiaranWoodward opened 6 years ago
Getting SPI failures?
1159 }
(gdb)
usb_try_read (pDeviceRef=0x55555575c668 <insts+296>, buf=0x7fffef7fde30 "\240+SPI 6368174ms: SPI_Send: Send Exchange Fail")
at usb-exchange/usb_exchange.c:197
197 if (error <= 0) break;
(gdb) p error
$5 = 0
A pull request to fix this is being built over in the baremetal driver: https://github.com/Cascoda/cascoda-bm-driver/pull/6
Debugging chili connection issues, it would be good to add some additional checks such as:
Periodically checking CA821X responsiveness
Periodically checking chili responsiveness Detecting automatic CA821X resets from chili (Could suggest spi issues) Detecting chili resets (Could suggest usb issues) Implement counters on chili and compare them to predicted versions (Detecting USB issues)
This info could then be used in order to implement a method of recovering from any issues