Project-CETI / whale-tag-embedded

Source code for the software that is used to build the image for the embedded computer inside the Whale Tags to be deployed onto sperm whales for project CETI
Apache License 2.0
13 stars 5 forks source link

FPGA bug list #63

Open msalinoh opened 6 months ago

msalinoh commented 6 months ago

These 2 FPGA bugs are currently accounted for in the pi software, but posting here so they are documented (and eventually resolved).

MattCummings0517 commented 1 month ago

For the audio side, I'm not sure we can avoid the first byte flushing problem, this may be more of how the SPI RX buffer on the Pi side works. There is always exactly one garbage byte at the beginning. Since the data comes across as the 3 16-bit channels interleaved, this one byte wreaks havoc in the data ordering. If it were only one channel, this would not be an issue.

For the ADC, I believe the issue is almost the same (FPGA talks to ADC via a SPI link as well - this interface is bridge to the Pi by the CAM protocol) . But in this case, it would be possible for the FPGA to proactively establish the SPI connection by priming it with a dummy load in advance of the first CAM.