Page 1 of 1

Using esp-serial-flasher tool with custom board that has auto programming BJT's

Posted: Thu Jan 11, 2024 2:20 am
by aik_one
Hi. I have a custom ESP32-C3 WROOM based board that I need to flash firmware and I was looking to use the esp-serial-flasher but it looks like this is meant to use the IO0 and RESET pins. I don't have direct access to these pins, since I put the auto programming circuit (the BJT's with the resistors) so I can use a USB-to-UART device to flash the boards.

Is there way I can use the esp-serial-flasher tool with the auto programming circuitry?

Re: Using esp-serial-flasher tool with custom board that has auto programming BJT's

Posted: Thu Jan 11, 2024 9:36 am
by ESP_Sprite
Sure. The low-level interface for esp-serial-flasher that poke IO0 and EN are loader_port_enter_bootloader() and (optionally, if your program wants to call that) loader_port_reset_target(). You can simply implement those with code that does the right DTR/RTS dance to make the two BJTs do the indicated things.