eren-terzioglu opened a new pull request, #16315:
URL: https://github.com/apache/nuttx/pull/16315

   ## Summary
   
   Add missing RS485 support for Risc-V based Espressif devices 
   
   * arch/risc-v/espressif: Fix Serial IFLOW build issue
   
   Serial IFLOW build error fixed for risc-v based Espressif devices
   
   * arch/risc-v/espressif: Add RS485 support for esp32[c3|c6|h2]
   
   Add RS485 support for Risc-V based Espressif devices
   
   ## Impact
   
   Impact on user: No, missing feature added
   
   Impact on build: Current builds works fine, new option added for new feature
   
   Impact on hardware: Serial peripheral got affected, new feature added
   
   Impact on documentation: No
   
   Impact on security: No
   
   Impact on compatibility: No, it is compatible between older defconfigs
   
   ## Testing
   <!-- Please provide all the testing procedure. Consider that upstream 
reviewers should be able to reproduce the same testing performed internally -->
   
   ### Building
   
   This command used to build:
   
   ```
   ./tools/configure.sh esp32c6-devkitc:nsh && kconfig-tweak -e 
CONFIG_ESPRESSIF_UART1 && kconfig-tweak -e CONFIG_ESPRESSIF_UART1_RS485 && 
kconfig-tweak -e CONFIG_EXAMPLES_SERIALRX && kconfig-tweak -e 
CONFIG_EXAMPLES_SERIALRX_PRINTSTR && kconfig-tweak -e DEBUG_SYMBOLS && make 
olddefconfig && make flash ESPTOOL_BINDIR=./ ESPTOOL_PORT=/dev/ttyUSB0 -s 
-j$(nproc) && minicom
   ```
   
   ### Connection list
   
   2 MAX485 adapter used
   
   ##### Transmitter Side:
   
   | ESP Device (esp32c3, esp32c6, esp32h2) | MAX485 Adapter |
   |----------------------------------------|----------------|
   | GPIO8                                  | DI             |
   | GPIO9                                  | RO             |
   | GPIO4                                  | DE             |
   | GPIO4                                  | RE             |
   
   
   #### Reciever Side
   
   | ESP Device (esp32c3, esp32c6, esp32h2) | MAX485 Adapter |
   |----------------------------------------|----------------|
   | GPIO8                                  | DI             |
   | GPIO9                                  | RO             |
   | GPIO4                                  | DE             |
   | GPIO4                                  | RE             |
   
   
   ### MAX485 Adapter Connections
   
   | MAX485 Adapter | MAX485 Adapter |
   |----------------|----------------|
   | A              | A              |
   | B              | B              |
   
   Overall connection looks like this:
   
   ESP-Device -- MAX485 Adapter -- MAX485 Adapter -- Logic Analyzer/ESP-Device
   
   ### Running
   
   Transmitter - Reciever test:
   
   `echo 1 > /dev/ttyS1` command used to send data and we can see "1\n" output 
on logic analyzer and other ESP-Device


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to