Can I flash without using PIN34, 35?

jollytopper
Posts: 30
Joined: Mon Sep 17, 2018 6:39 am

Can I flash without using PIN34, 35?

Postby jollytopper » Thu May 30, 2019 3:14 am

I would like to map 34,35 to UART2 RX/TX and use 2, 15 for UART0 RX/TX (flashing, monitor). Is this possible?
Last edited by jollytopper on Fri May 31, 2019 7:30 am, edited 1 time in total.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Can I flash without using PIN33, 34?

Postby WiFive » Thu May 30, 2019 7:29 am

No, not for initial flash. The pins can't be reconfigured that early in the boot process. Also what hardware pin numbering are you referencing?

jollytopper
Posts: 30
Joined: Mon Sep 17, 2018 6:39 am

Re: Can I flash without using PIN33, 34?

Postby jollytopper » Fri May 31, 2019 4:02 am

Sorry I was inconsistent with my naming. I am referencing the IO numbers as per pages 3 and 4 of https://www.espressif.com/sites/default ... eet_en.pdf.

For 34 - RXT0 / 35 - TXD0, I was referencing the Pin Number.

How may I use RXT0/TXD0 as an UART?

jollytopper
Posts: 30
Joined: Mon Sep 17, 2018 6:39 am

Re: Can I flash without using PIN33, 34?

Postby jollytopper » Fri May 31, 2019 4:26 am

Code: Select all

#        define ATE_RX_PIN 3
#        define ATE_TX_PIN 1
... 
uart_set_pin(UART_NUM_2, ATE_TX_PIN, ATE_RX_PIN, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE);

Why does this not let me use TXD0/RXD0 pins as TX/RX for UART2?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Can I flash without using PIN33, 34?

Postby WiFive » Fri May 31, 2019 4:53 am

You can, but you can't change pins for flashing in download boot mode.

jollytopper
Posts: 30
Joined: Mon Sep 17, 2018 6:39 am

Re: Can I flash without using PIN33, 34?

Postby jollytopper » Fri May 31, 2019 7:23 am

I'm not reading any input from my UART when using PINS 34, 35, corresponding to IO 3 and IO 1 respectively.

Who is online

Users browsing this forum: No registered users and 252 guests