Page 2 of 2

Re: SPI data corruption

Posted: Wed Feb 05, 2014 8:52 pm
by rocky
Right I agree. Currently I don't believe it has that facility, let me check the document further for this.

Aside from the efficiency issue, any suggestions on the corruption problem? Thanks.

Re: SPI data corruption

Posted: Wed Feb 05, 2014 9:33 pm
by Giovanni
It is hard to imagine what could cause an overwrite of the last byte with a zero. Are you sure the DMA is actually writing a zero? could you try to fill the buffer with a pattern and verify if the DMA is really writing zeros?

Giovanni

Re: SPI data corruption

Posted: Wed Feb 05, 2014 10:27 pm
by rocky
Yes I tested that, pre-filled the buffer with a pattern, and all get overwritten as 0. What I'm not sure is whether only the last byte get corrupted or all get corrupted, because the external device is supposed to return {0, 0, 0, 0, 0, 4}. I'll poke around and try to come up with more information. Thanks.