Re: esp32 custom board gpio and ws2812 problem

2023-05-22 Thread Tomek CEDRO
On Mon, May 22, 2023 at 5:02 PM Alan C. Assis wrote: > Just a update from Espressif: probably ESP32-C5 will have USB OTG, but > since it was not released yet we cannot confirm it (things can change > before releasing the chip). Thank You Alan!! :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Re: esp32 custom board gpio and ws2812 problem

2023-05-22 Thread Alan C. Assis
Hi Tomek, Just a update from Espressif: probably ESP32-C5 will have USB OTG, but since it was not released yet we cannot confirm it (things can change before releasing the chip). They suggested that companies interested on get this information should ask directly to the business support: sa...@es

Re: esp32 custom board gpio and ws2812 problem

2023-05-20 Thread Tim Hardisty
Maybe OTG is superseded? USB C dual role port is the way to go, but needs a 25c chip and software support to make it work. FUSB30x FTW :) From: "Alan C. Assis" Reply to: "dev@nuttx.apache.org" Date: Saturday, 20 May 2023 at 20:10 To: "dev@nuttx.apache.org" S

Re: esp32 custom board gpio and ws2812 problem

2023-05-20 Thread Alan C. Assis
Hi Tomek, On 5/20/23, Tomek CEDRO wrote: > Well all ESP32-C3 boards that I have (DevKit, M5) have UART-to-USB > converter so no JTAG so far.. I will order Beetle ESP32-C3 this one > should have direct USB/UART/JTAG pins on the USB-C connector :-) > > I have ordered ESP32-S2 as it has USB OTG. I r

Re: esp32 custom board gpio and ws2812 problem

2023-05-20 Thread Tomek CEDRO
Well all ESP32-C3 boards that I have (DevKit, M5) have UART-to-USB converter so no JTAG so far.. I will order Beetle ESP32-C3 this one should have direct USB/UART/JTAG pins on the USB-C connector :-) I have ordered ESP32-S2 as it has USB OTG. I really miss RISC-V MCU with USB Device/OTG.. ESP32-C6

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

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 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 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 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 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 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
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 >