Using pyboard.py #9484
-
I have an ESP32 board connected by USB. python pyboard.py -h I do get the expected output. But if I execute the example to copy from local main.py to the micropython board main.py: python pyboard.py --device /dev/ttyACM0 -f cp main.py : I get the following output: During handling of the above exception, another exception occurred: Traceback (most recent call last): I am a member of the dialout group, so I don't think permissions to /dev/ttyACM0 is the issue. Any other suggestions? Regards |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 19 replies
-
Did you install pyserial.py? I see serial.py in the logs. |
Beta Was this translation helpful? Give feedback.
-
An ESP32 is very unlikely to be /dev/ttyACM0 and more likely /dev/ttyUSB0 Suggest using mpremote instead, which can auto-detect available ports. |
Beta Was this translation helpful? Give feedback.
-
Some ESP32C3 models appear on /dev/ttyACM0. e.g. Seeed XIAO esp32c3. |
Beta Was this translation helpful? Give feedback.
-
Again, up to my first question: which serial package did you install? pyboard.py and mpremote require |
Beta Was this translation helpful? Give feedback.
-
Do you get a REPL prompt when connecting with a terminal emulator like picocom or screen? |
Beta Was this translation helpful? Give feedback.
-
Which firmware did you load? |
Beta Was this translation helpful? Give feedback.
-
I see that the ESP32-S3-DevKitM-1 v1.0 has two USB ports. One of them is connected to the USB/UART bridge. That one should show up at /dev/ttyUSB0. Try that one. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help, Robert. Just adding the conclusion here so I can mark it as 'answered'. |
Beta Was this translation helpful? Give feedback.
Thanks for the help, Robert. Just adding the conclusion here so I can mark it as 'answered'.
I was able to establish communication with my S3 board. And it is 8MB, which I found by calling esp.flash_size().
I think I may not have flashed from memory location 0. The earlier esp boards are flashed starting at location 0x1000, where as the S3 should be flashed from location 0x0.