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

   ## Summary
   
   <!-- This field should contain a summary of the changes. It will be 
pre-filled with the commit's message and descriptions. Adjust it accordingly -->
   
   Add LPUART support esp32c6 to have more uart options to choose and got more 
flexibility between different types of peripherals.
   
   * Documentation/risc-v/esp32[c6]: Add LP_UART support docs
   
   Add LPUART support doc for esp32c6
   
   * arch/risc-v/esp32[c6]: Add LP_UART support
   
   Add LP_UART support for esp32c6
   
   ## Impact
   <!-- Please fill the following sections with YES/NO and provide a brief 
explanation -->
   
   Impact on user: Yes, users can use LPUART if they want
   <!-- Does it impact user's applications? How? -->
   
   Impact on build: No, it is not a breaking change
   <!-- Does it impact on building NuttX? How? (please describe the required 
changes on the build system) -->
   
   Impact on hardware: Yes, LPUART peripheral now avaible for esp32c6
   <!-- Does it impact a specific hardware supported by NuttX? -->
   
   Impact on documentation: Yes, related peripheral support mentioned in docs
   <!-- Does it impact the existing documentation? Please provide additional 
documentation to reflect that -->
   
   Impact on security: No
   <!-- Does it impact NuttX's security? -->
   
   Impact on compatibility: No
   <!-- Does it impact compatibility between previous and current versions? Is 
this a breaking change? -->
   
   ## Testing
   <!-- Please provide all the testing procedure. Consider that upstream 
reviewers should be able to reproduce the same testing performed internally -->
   
   ### Building
   <!-- Provide how to build the test for each SoC being tested -->
   
   `esp32c6-devkitc:nsh` config used with `CONFIG_ESPRESSIF_LP_UART0` option 
enabled.
   
   Command used to build:
   
   ```
   make distclean && ./tools/configure.sh esp32c6-devkitc:nsh && kconfig-tweak 
-e CONFIG_ESPRESSIF_LP_UART0 &&  make olddefconfig && make -j && make download 
ESPTOOL_PORT=/dev/ttyUSB0 ESPTOOL_BAUD=921600 ESPTOOL_BINDIR=../esp-bin
   ```
   
   After build process LPUART pins connected to USB-UART adapter/Logic 
analyzer. These pins cannot be changed due to hardware limitations. Connections 
looks like this:
   
   | USB-UART Adapter | ESP32-C6   |
   |------------------|------------|
   | RX               | GPIO5 (TX) |
   | TX               | GPIO4 (RX) |
   
   
   ### Running
   <!-- Provide how to run the test for each SoC being tested -->
   
   `echo 1 > /dev/ttyS1` command can be used to check output function is 
working fine and output followed with a logic analyzer. To check input function 
`cat /dev/ttyS1` command data sent through USB-UART adapter with `picocom -b 
115200 <PORTNAME>` command. Same data should show up


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