Hi,
I search a small example for SPI Master and DMA transfer.
So that I can receive e.g. 15 bytes with DMA and get a transfer end interrupt/callback when it is finished.
Thanks in advanced !
Hello roywI couldn't find the implementation of SPI with DMA as of now, but you might want to check out the following thread which mentions a comparison between DMAC and DTC: https://renesasrulz.com/mcu-mpu/ra/f/forum/19850/ra-dmac-and-dtcIf that seems like DTC can be relevant to your application, please check out the following thread and example:https://renesasrulz.com/mcu-mpu/ra/f/forum/19608/spi-dtc (For stack configuration)RA4M1 SPI using DTC Example Kindly let me know if that's helpful or not, in the meantime I'll keep looking for more relevant resources.-JayeshIf this response, or one provided by another user, answers your question, please verify the answer. Thank you!RenesasRulz Forum Moderatorhttps://renesasrulz.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/
Thank you ,
I think DMA is for me the better solution, because I need a very fast firmware. The ADC convert the signals periodly and than I have only some µs for reading and calculating values.
I will try it with DTC, but DMA is my favorite ...
I'm still looking for more relevant resources but I just found an implementation of UART with DMAC on RA4M1 attached as a zip in the following thread. Again, not exactly what you asked for but mentioning it here as it could serve as a reference for implementing DMAC with SPI.renesasrulz.com/.../dma-access-using-sci-uart-in-ra4m1-series-controllerHowever, the version of the FSP is quite outdated in the above example so please refer to the latest FSP manual along with the example.-JayeshIf this response, or one provided by another user, answers your question, please verify the answer. Thank you!RenesasRulz Forum Moderatorhttps://renesasrulz.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/
Have you an example for SPI Master with DMA / DTC ?
FSP4.0 supports DTC and DMAC transfer interface in the driver
Add the r_spi driver to your project
Add the DMAC transfer driver to the stack: