brorson / ADC-001_basic_code

Basic programs for development and test of the ADC-001 cape
GNU General Public License v3.0
3 stars 3 forks source link

Handle buffer overrun cases #6

Closed RobertPHeller closed 4 years ago

RobertPHeller commented 4 years ago

I think I pretty much have it. Buffer overruns are detected and handled. There are still some spikes, so it looks like there might still be some dropped data points. I am not sure how we can handle this. My only thought might be to either use pru1 to do the actual copying to ARM memory (which might be possible, since the pru can access ARM memory). Maybe using the 12K shared memory which would allow larger buffers. Another option would be a kernel driver, which would be able to access pru memory and ARM memory without the overhead of mmap.

There are sometimes PRU SPI timeouts. I don't know what causes that.