Re: ESP32C3 Using UART1 in RS485 mode with HW flowcontrol

2025-02-18 Thread Alan C. Assis
Hi Erik, That is right, AFAIK all RS485 implementations on NuttX use this approach (even for ESP32). This solution was created by Freddie Chopin many years ago for STM32. I think this approach is similar to the way NuttX supports SPI CS pins, so you have more flexibility to use any pin you want.

Re: ESP32C3 Using UART1 in RS485 mode with HW flowcontrol

2025-02-18 Thread Erik Englund
Hi Alan! Native hw-controlled rts would ofcourse be the cleanest solution, but this project is not very timing critical so the software solution you suggest will most likely be sufficient! Thanks for pointing that out, i´ll just do it that way instead, to get going. But this also raises the quest

Re: ESP32C3 Using UART1 in RS485 mode with HW flowcontrol

2025-02-18 Thread Alan C. Assis
Hi Erik, Do you want to implement it using the native HW from serial controller to support RS485 or do you just want RS485 and it could be implemented as in other MCUs where after detecting transfer complete we control the DE/RE pin? If the later is OK for you, then please take a look how it was

Re: ESP32C3 Using UART1 in RS485 mode with HW flowcontrol

2025-02-18 Thread Erik Englund
Yes, i put ESP32C3 in the subject to the maillist, but maybe it was omitted? Im building with boardconfig esp32c3-generic and the wifi config, so the common implementation is used. ( for a common build theres quite a lot of header files: arch/risc-v$ find -name uart_ll.h ./src/esp32c3/esp-hal-3rdp

Re: ESP32C3 Using UART1 in RS485 mode with HW flowcontrol

2025-02-17 Thread Tiago Medicci Serrano
Hi Erik, Would you mind opening an issue at https://github.com/apache/nuttx/issues? It isn't clear which SoC you are testing, but it seems to be a RISC-V-based Espressif SoC (ESP32-C3, perhaps). For ESP32-C3, we have two implementations: a legacy