UART1 re-map on on different pin

nicola
Posts: 22
Joined: Mon Feb 18, 2019 8:04 am

UART1 re-map on on different pin

Postby nicola » Tue Jun 16, 2020 8:13 am

Hi to everyone ,
I need to connect a UART GPS module on a ESP32-WROOM.
From what I see the UART1 of esp32-wroom is mapped to GPIO9 and GPIO10 which are also connected to SPI RAM. Is possible to re-map the uart1 on the GPIO14 and GPIO12 in the firmware ?
If not, where can I map the UART1 to a different pins?
Hope you can help.
Awaiting your kind reply and thanks.


Nicola

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: UART1 re-map on on different pin

Postby ESP_Sprite » Tue Jun 16, 2020 10:27 am

Yes. If you use ESP-IDF, you can pass alternate pins to the initialization function of the UART driver.

nicola
Posts: 22
Joined: Mon Feb 18, 2019 8:04 am

Re: UART1 re-map on on different pin

Postby nicola » Wed Jun 17, 2020 8:43 am

Thanks a lot I'm going to use esp-idf surely.
Thanks again
Nico

Who is online

Users browsing this forum: Bing [Bot] and 102 guests