Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5368

SDK • Re: Ring buffer not filling (modification to dma_capture example

$
0
0
You need to align the capture buffer to a 64 byte boundary. In general the buffer must be aligned to its size which should be a power of 2

Code:

uint8_t __attribute__ ((aligned (64)))capture_buf[CAPTURE_DEPTH];

Statistics: Posted by matherp — Mon Nov 18, 2024 8:27 am



Viewing all articles
Browse latest Browse all 5368

Trending Articles