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

aik_one
Posts: 3
Joined: Thu Nov 30, 2023 8:56 pm

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

Postby aik_one » Thu Jan 11, 2024 2:20 am

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?

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Thu Jan 11, 2024 9:36 am

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.

Who is online

Users browsing this forum: MicroController and 101 guests