Skip to content

Broken support for PICO UART BRIDGE (ESPTOOL-1134) #1119

@therealdreg

Description

@therealdreg

Operating System

Windows 11

Esptool Version

esptool v5.0.2

Python Version

esptool.exe

Chip Description

ESP-C2

Device Description

Something broke in the new versions of esptool.exe. I’m using an RP2040 as a UART BRIDGE and it has always worked fine (I do this to save a USB connector, so I can program both the RP2040 and the ESP through the same USB port). But in the latest versions it doesn’t work — it can’t program the chip. I’ve tried several baud rates and it still doesn’t work.

I’m attaching the --trace output from the esptool version that works and the --trace from the latest esptool.exe version that doesn’t.

trace-good-esptool-old.txt

trace-bad-esptool-last.txt

https://github.com/therealdreg/okhi?tab=readme-ov-file#schematic

Hardware Configuration

https://github.com/therealdreg/okhi?tab=readme-ov-file#schematic

https://github.com/therealdreg/okhi/tree/main/stuff/pico-uart-bridge-dregmod

https://github.com/therealdreg/okhi/blob/main/stuff/pico-uart-bridge-dregmod/uart-bridge.c

How is Esptool Run

NO IDE, WINDOWS CMD

Full Esptool Command Line that Was Run

esptool.exe --trace --port COM23 --chip esp32c2 --baud 921600 --before no_reset --after no_reset write_flash -z --flash_mode dio --flash_freq 60m --flash_size 4MB 0x0000 bootloader.bin 0x8000 partition-table.bin 0x10000 okhi.bin 0x300000 storage.bin

Esptool Output

Warning: Deprecated: Option '--flash_mode' is deprecated. Use '--flash-mode' instead.
Warning: Deprecated: Option '--flash_freq' is deprecated. Use '--flash-freq' instead.
Warning: Deprecated: Option '--flash_size' is deprecated. Use '--flash-size' instead.
Warning: Deprecated: Choice 'no_reset' for option '--before' is deprecated. Use 'no-reset' instead.
Warning: Deprecated: Choice 'no_reset' for option '--after' is deprecated. Use 'no-reset' instead.
Warning: Deprecated: Command 'write_flash' is deprecated. Use 'write-flash' instead.
esptool v5.0.2
Serial port COM23:
Note: Pre-connection option "no-reset" was selected. Connection may fail if the chip is not in bootloader or flasher stub mode.
Connecting...
  TRACE +0.000   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.111   No serial data received.
.
  TRACE +0.057   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.106   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.109   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.109   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.110   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.109   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.110   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.109   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.109   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.109   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.109   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.107   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.110   No serial data received.
.
  TRACE +0.054   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.108   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.107   No serial data received.
.
  TRACE +0.055   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.112   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.110   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.108   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.110   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.107   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
  TRACE +0.109   No serial data received.
.
  TRACE +0.053   --- Cmd SYNC (0x08) | data_len 36 | wait_response 1 | timeout 0.100 | data 
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU ---
  TRACE +0.000   Write 46 bytes:       
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.

More Information

No response

Other Steps to Reproduce

trace-good-esptool-old.txt
trace-bad-esptool-last.txt

I Have Read the Troubleshooting Guide

  • I confirm I have read the troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions