Re: SPI+DMA with ws2812 driver on samd21

2023-11-10 Thread Bert Voldenuit
Hello, Thanks for the reference. First, from the beginning I had to change in sam_dmac.c: locate_data(".lpram"), aligned(16); to locate_data(".lpram") aligned_data(16); Because the compiler made errors. Is this correct?? If so, should I push it to the repo?? The DMA is configured very

Re: SPI+DMA with ws2812 driver on samd21

2023-11-09 Thread Alan C. Assis
Hi Bert, Are you configuring the DMA similar to way he did: https://web.archive.org/web/20221027190645/http://www.lucadavidian.com/2018/03/08/wifi-controlled-neo-pixels-strips/ ? Although on NuttX each driver is a separated instance, under the hook the basic configuration will be similar. BR,

SPI+DMA with ws2812 driver on samd21

2023-11-09 Thread Bert Voldenuit
Hello, I have figured what causes the transmission problem. I had to setup the Channel Control B Register with: DMAC_CHCTRLB_TRIGACT_BLOCK instead of DMAC_CHCTRLB_TRIGACT_BEAT Because it would only do one pulse. With TRIGACT_BLOCK, it looks better but DMAC do not read all the buffer. it seams