Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve USB Flashing steps #10

Closed
hpsaturn opened this issue Mar 24, 2024 · 1 comment
Closed

Improve USB Flashing steps #10

hpsaturn opened this issue Mar 24, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@hpsaturn
Copy link
Owner

hpsaturn commented Mar 24, 2024

Summary

The current version needs extra steps to change the USB permissions into the Docker container. Will be nice fix that. I added the internal user to dialup group and also I did some tests with special commands on docker run to have permissions into the device. But nothing. If you know how to fix that, please do a PR.

Details

Without the current flashing steps, we would have:

Project build complete. To flash, run this command:
/app/build/.espressif/python_env/idf5.1_py3.10_env/bin/python ../esp-idf/components/esptool_py/esptool/esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32s3  write_flash --flash_mode dio --flash_size 8MB --flash_freq 80m 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/network_adapter.bin
or run 'idf.py -p (PORT) flash'
+ read -p 'ready to flash... press enter'
ready to flash... press enter
+ idf.py -b 2000000 flash
Executing action: flash
Serial port /dev/ttyACM0
/dev/ttyACM0 failed to connect: Could not open /dev/ttyACM0, the port is busy or doesn't exist.
([Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0')

Hint: Try to add user into dialout group: sudo usermod -a -G dialout $USER

No serial ports found. Connect a device, or use '-p PORT' option to set a specific port.
+ read -p 'failure... press enter to try again
@hpsaturn hpsaturn added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Apr 7, 2024
@hpsaturn
Copy link
Owner Author

hpsaturn commented Feb 5, 2025

Seems that the Docker people fixed this issue on Docker level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant