Cascoda / ca821x-posix

Library for posix systems to connect the ca821x-api to an available interface (usb/kernel driver)
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Improve functionality for test program #10

Open CiaranWoodward opened 6 years ago

CiaranWoodward commented 6 years ago

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

CiaranWoodward commented 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
CiaranWoodward commented 6 years ago

A pull request to fix this is being built over in the baremetal driver: https://github.com/Cascoda/cascoda-bm-driver/pull/6