Hello Felipe, If I remember correctly the version of esp-hal-3rdparty that we are using does not support LP peripherals or at least lp_uart. We need to update it first and then it is possible to implement it. It might be the reason why you did not find related gpio idx value. You can check initial commit of lp_uart support on idf there https://github.com/espressif/esp-idf/commit/36380826701a1f8f213a65475a18341581a9c81a which is merged to v5.2 beta (we are using v5.1)
Best Regards, ________________________________ From: Felipe Moura Oliveira <moura....@gmail.com> Sent: Wednesday, January 15, 2025 4:51 PM To: dev@nuttx.apache.org <dev@nuttx.apache.org> Subject: Re: Assistance Needed with Adding a Low Power UART on ESP32C6 Project [External: This email originated outside Espressif] Hello Eren. Table 7-2 from https://www.espressif.com/sites/default/files/documentation/esp32-c6_technical_reference_manual_en.pdf show relation between IDX and peripherals, but there are only 2 UARTs available, it doesn't talk about 3rd uart. I will check more about this. Will be good to add more than one uart in esp32c6. Em qua., 15 de jan. de 2025 às 08:51, Felipe Moura Oliveira < moura....@gmail.com> escreveu: > Hello Eren. > > Thanks for your support. > I cannot find a relation with values of IDX in the technical reference. > Also, looking at the use of the function esp_gpio_matrix_out in the idf, > the approach there is different. > Do you know how I can find the right IDX for LP_UART? > > LP_UART is available in idf by config below: > > { // LP UART0 > .pins = { > [SOC_UART_TX_PIN_IDX] = { > .default_gpio = LP_U0TXD_GPIO_NUM, > .iomux_func = LP_U0TXD_MUX_FUNC, > .input = 0, > .signal = UINT8_MAX, // Signal not available in signal map > }, > > [SOC_UART_RX_PIN_IDX] = { > .default_gpio = LP_U0RXD_GPIO_NUM, > .iomux_func = LP_U0RXD_MUX_FUNC, > .input = 1, > .signal = UINT8_MAX, // Signal not available in signal map > }, > > [SOC_UART_RTS_PIN_IDX] = { > .default_gpio = LP_U0RTS_GPIO_NUM, > .iomux_func = LP_U0RTS_MUX_FUNC, > .input = 0, > .signal = UINT8_MAX, // Signal not available in signal map > }, > > [SOC_UART_CTS_PIN_IDX] = { > .default_gpio = LP_U0CTS_GPIO_NUM, > .iomux_func = LP_U0CTS_MUX_FUNC, > .input = 1, > .signal = UINT8_MAX, // Signal not available in signal map > }, > }, > .irq = ETS_LP_UART_INTR_SOURCE, > }, > }; > > > > Em qua., 15 de jan. de 2025 às 06:20, Eren Terzioğlu > <eren.terzio...@espressif.com.invalid> escreveu: > >> Hi, >> >> U1TXD_OUT_IDX and similar idx variables represent signal indexes which >> are used to route related peripheral output to the gpio. After routing the >> correct signal to gpio pin, you can access the related peripheral from gpio >> pin. >> >> Best Regards >> ________________________________ >> From: Felipe Moura Oliveira <moura....@gmail.com> >> Sent: Wednesday, January 15, 2025 3:55 AM >> To: dev@nuttx.apache.org <dev@nuttx.apache.org> >> Subject: Assistance Needed with Adding a Low Power UART on ESP32C6 Project >> >> [External: This email originated outside Espressif] >> >> *Dear All,* >> >> I hope this message finds you well. >> >> I am currently working on a project using the ESP32C6 and find myself in >> need of an additional UART, bringing the total to three UARTs. Initially, >> I >> considered implementing a UART using bit-banging; however, after reviewing >> the documentation, I discovered that a low power UART option is available, >> which seems to suit my requirements. >> >> At first glance, adding this UART does not appear to be overly complex. >> However, I am encountering an issue related to a missing configuration: >> >> The UART configurations on the ESP require two parameters that I am having >> difficulty understanding: >> >> .txsig = U1TXD_OUT_IDX, >> .rxsig = U1RXD_IN_IDX, >> >> Could someone please explain what these parameters represent? >> >> Upon examining the gpio_sigmap.h file that references the ESP32C6, I >> noticed that there isn't a similar parameter available for use with >> the low power UART. How should I proceed in this case? >> >> Any guidance or assistance you can provide would be greatly appreciated. >> >> Thank you in advance for your support. >> >> *Best regards,* >> >> >> -- >> *Felipe Moura de Oliveira* >> *Universidade Federal de Minas Gerais* >> Linkedin <https://www.linkedin.com/in/felipe-oliveira-75a651a0> >> <https://twitter.com/FelipeMOliveir?lang=pt-br> >> > > > -- > *Felipe Moura de Oliveira* > *Universidade Federal de Minas Gerais* > Linkedin <https://www.linkedin.com/in/felipe-oliveira-75a651a0> > <https://twitter.com/FelipeMOliveir?lang=pt-br> > -- *Felipe Moura de Oliveira* *Universidade Federal de Minas Gerais* Linkedin <https://www.linkedin.com/in/felipe-oliveira-75a651a0> <https://twitter.com/FelipeMOliveir?lang=pt-br>