Skip to content
Discussion options

You must be logged in to vote

What you wrote above is correct. The "downloader" or hat will prevent MicroPython REPL from running. This is why I suggest trying to detach the ESP32-CAM form it and use 4 wires to connect to it instead.

However, I have found a workable solution for this.

Here is a simple reset script you can try "reset_board.py":

import argparse

parser = argparse.ArgumentParser()
parser.add_argument('port')
args = vars(parser.parse_args())

from esptool.loader import ESPLoader
from esptool.reset import (
    CustomReset,
)

u = ESPLoader(args['port'])
rst = CustomReset(u._port, "R0|D0|W0.5|D1|W0.1|D0|R0") # reset to DTR high state
rst()
u._port.close()

Now open a terminal and run

tio /dev/ttyUSB0

or

m…

Replies: 4 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@shariltumin
Comment options

@moferreira
Comment options

@shariltumin
Comment options

@moferreira
Comment options

@moferreira
Comment options

Comment options

You must be logged in to vote
4 replies
@davefes
Comment options

@moferreira
Comment options

@davefes
Comment options

@moferreira
Comment options

Comment options

You must be logged in to vote
3 replies
@moferreira
Comment options

@shariltumin
Comment options

Answer selected by moferreira
@moferreira
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
4 participants