App. upload UART2 how to: for ESP32 Adafruit demo board

blavoie
Posts: 16
Joined: Sat Jan 21, 2017 6:41 pm

App. upload UART2 how to: for ESP32 Adafruit demo board

Postby blavoie » Sat Apr 01, 2017 1:01 pm

I have an Adafruit ESP32 demo board and I would like to change the application upload UART number to UART2 while keeping the main stdout application uart to UART0 like it currently is.

I found that the reset pin "J3" is connected to GPIO 0, but that's all I know at this point. I've tried looking thru the esp-idf to locate the rest of the mechanics that takes place.

I'd like to know where the GPIO 0 ISR is and also would like to know where the UART configuration takes place for the application upload.

I'm hoping somebody has looked into this and can point me in the right direction.

Any help is greatly appreciated.

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

Re: App. upload UART2 how to: for ESP32 Adafruit demo board

Postby WiFive » Sat Apr 01, 2017 4:40 pm

You may have to do the opposite. This happens in ROM code. But you could potentially add your own uart2 OTA loader in a custom 2nd stage bootloader or in firmware code.

blavoie
Posts: 16
Joined: Sat Jan 21, 2017 6:41 pm

Re: App. upload UART2 how to: for ESP32 Adafruit demo board

Postby blavoie » Sun Apr 02, 2017 1:12 am

From your suggestion looks like changing the stdout to UART2 and keeping the bootloader port at UART0 is much easier. I'll try that approach and post back to this group with what I find.

thanks for your help.

Who is online

Users browsing this forum: No registered users and 137 guests