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 stm32f4discover because AFAIK originally Brennan
> implemented and tested the driver in STM32.

Whoops o_O

There are two problems:

1. ws2812 application not talking to the (working) /dev/led_rgb what I
would love to understand and solve in the first place as my learning
curve :-)

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!!) :-)

I have already whole bunch WS2812-MINI WS2813 etc already purchased in
the boxes and on boards so I cannot really replace them at this
point.. but thank you for the APA102 / SK9822 hints I never used them
and they may be better solution for smaller MCUs! :-)

As for now I just need to make at least one RGB LED shine green or red
so anything else can stop for that short time (~1.2us).

Is there a some sort of compatibility matrix in NuttX to quickly see
what peripheral will work on what hardware.. in terms of what has been
proven to work? Maybe a Kconfig confirmation/warning flag? Or its
always trial-and-error-evaluation?


> For GDB debug you will need a ESP-Prog or some OpenOCD compatible JTAG
> programmer.
> More info here:
> https://acassis.wordpress.com/2021/05/12/debugging-esp32-using-openocd-and-gdb/

Yeah I have whole bunch of JTAG probes and I have created initial port
of OpenOCD for FreeBSD.. I was wondering is there any other way I
would like to debug this situation on a running production device
where JTAG pins are already used by peripherals? For instance GDB that
runs on target nsh over UART/Telnet?

Alternatively, I am considering trying out the same application
running on a ESP32-C3 (with the same GPIO and RMT I guess?) that has
this magic USB/JTAG port, because I never used that before, and NuttX
portability allows me to rebuild everything for a different hardware
in 17 sec that is faster than I reach out to my cables box :-) :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Reply via email to