RE: Odd DMA issue

2023-05-18 Thread Tim Hardisty
I have compared the SAMv7 SPI XDMAC to SAMA5, and checked the PR and dcache suggestions from Simon Filgis and only found one discrepancy:: SAMA5 had DMACH_FLAG_MEMBURST_4 compared to SAMv7 which had DMACH_FLAG_MEMBURST_1. I won't profess to understand the detailed significance, but DMA does now

esp32 custom board gpio and ws2812 problem

2023-05-18 Thread Tomek CEDRO
Hello world :-) === Short Story Long === I have just created my first custom board configuration based on ESP32DevkitC. Both application and board configuration is external to the nuttx.git and nuttx-apps.git (these are git submodules of my project). >From what I can see the board definition for

Re: esp32 custom board gpio and ws2812 problem

2023-05-18 Thread Alan C. Assis
Hi Tomek, On 5/18/23, Tomek CEDRO wrote: > Hello world :-) > > === Short Story Long === > > I have just created my first custom board configuration based on > ESP32DevkitC. Both application and board configuration is external to > the nuttx.git and nuttx-apps.git (these are git submodules of my >

Re: esp32 custom board gpio and ws2812 problem

2023-05-18 Thread Brennan Ashton
On Thu, May 18, 2023, 11:53 AM Alan C. Assis wrote: > I don't think you can get ws2812 working directly using a GPIO over > bitbang, the protocol used by this chip is very time sensitive. > Actually even in SPI mode I failed to get it working, I tried it on > stm32f103-minimum and stm32f4discover

Re: esp32 custom board gpio and ws2812 problem

2023-05-18 Thread Alan C. Assis
On 5/18/23, Tomek CEDRO wrote: > Hello world :-) > > === Short Story Long === > > I have just created my first custom board configuration based on > ESP32DevkitC. Both application and board configuration is external to > the nuttx.git and nuttx-apps.git (these are git submodules of my > project).

Re: esp32 custom board gpio and ws2812 problem

2023-05-18 Thread Alan C. Assis
On 5/18/23, Brennan Ashton wrote: > On Thu, May 18, 2023, 11:53 AM Alan C. Assis wrote: > >> I don't think you can get ws2812 working directly using a GPIO over >> bitbang, the protocol used by this chip is very time sensitive. >> Actually even in SPI mode I failed to get it working, I tried it o

Re: esp32 custom board gpio and ws2812 problem

2023-05-18 Thread Tomek CEDRO
On Thu, May 18, 2023 at 8:53 PM Alan C. Assis wrote: > Hi Tomek, > > I don't think you can get ws2812 working directly using a GPIO over > bitbang, the protocol used by this chip is very time sensitive. > Actually even in SPI mode I failed to get it working, I tried it on > stm32f103-minimum and st

Re: esp32 custom board gpio and ws2812 problem

2023-05-18 Thread Tomek CEDRO
On Thu, May 18, 2023 at 8:59 PM Brennan Ashton wrote: > I tested it on an nRF52 but I think others have use STM32. It is > particular since we are abusing SPI for something that looks kind of like > SPI. I recommend using a logic analyzer to verify the waveform on the wire > if debugging this. T

Re: esp32 custom board gpio and ws2812 problem

2023-05-18 Thread Tomek CEDRO
On Thu, May 18, 2023 at 9:31 PM Tomek CEDRO wrote: > 2. WS2812 timing pains. I know it is possible to drive WS2812 from > ESP32 because I have done that already on MicroPyhon both with GPIO > bitbang and even better with RMT peripheral that makes it walk in the > park (we can make one for NuttX!!)

Re: esp32 custom board gpio and ws2812 problem

2023-05-18 Thread Tomek CEDRO
On Thu, May 18, 2023 at 9:13 PM Alan C. Assis wrote: > There is also the RMT driver from Victor Benso: > https://www.youtube.com/watch?v=rmOh9iGzwtk > He submitted a PR to mainline: https://github.com/apache/nuttx/pull/6992 > Maybe you can work with him to fix the remaining issue and get it merged