Re: esp32 / pcnt / rotary encoder

2023-02-19 Thread Alan C. Assis
Yes, you can use MCUBoot to do FOTA that is already is integrated on NuttX for ESP32 On 2/19/23, Tomek CEDRO wrote: > Allright, I have NuttX origin/master built on FreeBSD and running on > ESP32-DevKitC :-) > > For some reason uname -a shows release 10.4.0 not 12.0.0(99/dev whatever) > o_O > > Th

Re: esp32 / pcnt / rotary encoder

2023-02-18 Thread Tomek CEDRO
Allright, I have NuttX origin/master built on FreeBSD and running on ESP32-DevKitC :-) For some reason uname -a shows release 10.4.0 not 12.0.0(99/dev whatever) o_O The whole NuttX firmware build and flashing is faster than scripts upload in MicroPython heheh.. and they fight for encoder / timer

Re: esp32 / pcnt / rotary encoder

2023-02-18 Thread Tomek CEDRO
On Sat, Feb 18, 2023 at 9:53 PM Alan C. Assis wrote: > Hi Tomek, > Please take a look: > https://github.com/apache/nuttx/blob/master/arch/xtensa/src/esp32/esp32_qencoder.c > > It was tested with common rotary encoders (i.e. those used on 3D > Printers to select items on UI menu). > > I didn't test

Re: esp32 / pcnt / rotary encoder

2023-02-18 Thread Alan C. Assis
Hi Tomek, Please take a look: https://github.com/apache/nuttx/blob/master/arch/xtensa/src/esp32/esp32_qencoder.c It was tested with common rotary encoders (i.e. those used on 3D Printers to select items on UI menu). I didn't test it at high frequencies, but according with this thread https://es

esp32 / pcnt / rotary encoder

2023-02-18 Thread Tomek CEDRO
Hello world :-) Is PCNT peripheral supported on ESP32 port in NuttX? I am building a new device that will use industrial rotary encoder with pulses up to 1..3MHz so GPIO/IRQ processing is probably not a good idea. I am wondering if there are such rotary use cases in NuttX? I wanted to use RISC-