PIC32 as programmer
Posted: Mon Nov 29, 2021 7:24 pm
Hi.
I have designed a board using a PIC32 processor as programming interface to ESP32, in order to have USB programming option in the board (similar to other design using FTDI etc).
I use RTS and DTR for boot and enable/reset, and the TXDO/RXDO for programming.
The problem is that I can not get past:
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
I checked all the signals, and do get:
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
after boot and reset.
I made a small firmware to test UART communication between the two devices successfully.
I have tested the same port with FTDI successfully.
I run the console through the PIC32 processor successfully (both directions)
I tried 10k pull down on RX0.
I tried 10uF to ground on Reset.
Everything works fine, but I am not able to pass the initial programming part.
I only see the start package sent from ESP-IDF over and over again.
I can not figure out what is wrong, and why the ESP32 seems to ignore the start flash command.
Please help!
best regards
Patrik
I have designed a board using a PIC32 processor as programming interface to ESP32, in order to have USB programming option in the board (similar to other design using FTDI etc).
I use RTS and DTR for boot and enable/reset, and the TXDO/RXDO for programming.
The problem is that I can not get past:
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
I checked all the signals, and do get:
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
after boot and reset.
I made a small firmware to test UART communication between the two devices successfully.
I have tested the same port with FTDI successfully.
I run the console through the PIC32 processor successfully (both directions)
I tried 10k pull down on RX0.
I tried 10uF to ground on Reset.
Everything works fine, but I am not able to pass the initial programming part.
I only see the start package sent from ESP-IDF over and over again.
I can not figure out what is wrong, and why the ESP32 seems to ignore the start flash command.
Please help!
best regards
Patrik