Re: SPI with DMA on SAME70

2022-02-21 Thread Simon Filgis
ly more critical problem for our > implementation at Elektroline.cz company is DMA support for U(S)ART. That > will also be a nice way to find if there are some further DMA TX bugs. > > Best regards, > Michal Lenc > > ------ Původní e-mail -- > Od: Simon Filgis

Re: SPI with DMA on SAME70

2022-02-20 Thread Michal Lenc
ice way to find if there are some further DMA TX bugs. Best regards, Michal Lenc -- Původní e-mail -- Od: Simon Filgis Komu: dev@nuttx.apache.org Datum: 14. 2. 2022 16:33:32 Předmět: Re: SPI with DMA on SAME70 "Dear all, I started to follow up this topic. Found that one

Re: SPI with DMA on SAME70

2022-02-14 Thread Simon Filgis
Dear all, I started to follow up this topic. Found that one in sam_hsmci.c: /* There is some unresolved issue with the SAMV7 DMA. TX DMA is currently * disabled. */ #undef HSCMI_NORXDMA /* Define to disable RX DMA */ *#define HSCMI_NOTXDMA1 /* Define to disable TX

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