Hello,
I have a question. I've been reading about the DMA module and the SPi module for a while, and I have 2 questions.
1 - According to something I read in a question posted here, the SPI module, in compatibility mode, only supports 16 bit transfers with DMA (can't find the link to the question posted).
2 - Is it possible to use the SPI module receiving separate bytes and the after reading some of them start receiving a frame with the DMA module? Maybe this question is a little foggy. Here's my problem: My hercules board would send a request for a slave. The response for this request varies according to what the slave has, sometimes it could have 50 bytes, and sometimes it could have 1kB, so I would need a way to read the first few bytes like a normal byte to byte transfer and then adjust the DMA receive frame size, according to the information received. Also the package sent to the slave will vary, although not as much as the slave's response.
For example:The master would send a request and the slave needs to respond with 100 frames of 512 bytes, but the frame size is in the 2nd byte (the last frame may have only 10 bytes) and the total size is in the 3rd 4th and 5th byte (lots of data).
PS: I've never needed to work with the DMA module, so I really have no idea if some of these thing I want to do are possible