Re: SPI with DMA on SAME70

2022-02-08 Thread Simon Filgis
Hello Michael, Thank you for your answer. That is true, SPI driver's initial flag setup is 0. The flags are evaluated dynamically and very meaningful within spi_exchange() and set via sam_dmaconfig(spics->rxdma, rxflags); sam_dmaconfig(spics->txdma, txflags); I will try with setup initial f

Re: SPI with DMA on SAME70

2022-02-08 Thread Michal Lenc
Hello Simon, I did take a look into SPI driver for SAME70 a few months ago. The one thing that was a little bit weird to me was the lack of DMA flags passed to sam_ dmachannel() function (somewhere here https://github.com/apache/incubator- nuttx/blob/master/arch/arm/src/samv7/sam_spi.c#L2043) co

SPI with DMA on SAME70

2022-02-08 Thread Simon Filgis
Dear all, I'm using ST7789.c in combination with lvgl-lib. The bottleneck to the display is the SPI communication. But even if I increase the SPI frequency to 24MHz, it does not get faster. This is because of constant delay between the bytes. I guessed that this can be improved using DMA. But th