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

v4.8.0 #40

Merged
merged 36 commits into from
Sep 18, 2024
Merged

v4.8.0 #40

merged 36 commits into from
Sep 18, 2024

Conversation

Jason2866
Copy link
Owner

No description provided.

radimkarnis and others added 27 commits August 1, 2024 15:57
`esptool` frequently fails when trying to open the serial port of a device
which deep-sleeps often:

$ esptool.py --chip esp32s3 -p /dev/cu.usbmodem6101 [...] write_flash foo.bin
Serial port /dev/cu.usbmodem6101

A fatal error occurred: Could not open /dev/cu.usbmodem6101, the port is busy or doesn't exist.
([Errno 35] Could not exclusively lock port [...]: [Errno 35] Resource temporarily unavailable)

This makes developers add unnecessarily long sleeps when the main CPU is awake, in order to give
`esptool` the chance to find the serial port.

This PR adds a new env variable `DEFAULT_OPEN_PORT_ATTEMPTS` and cfg file entry `retry_open_serial`
which attempts to open the port selected number of times (optionaly indefinitely) until the device
shows up:

$ export DEFAULT_OPEN_PORT_ATTEMPTS=1
$ esptool.py --chip esp32s3 -p /dev/cu.usbmodem6101 [...] write_flash foo.bin
Serial port /dev/cu.usbmodem6101
[Errno 35] Could not exclusively lock port [...]: [Errno 35] Resource temporarily unavailable
Retrying to open port .........................
Connecting....
Chip is ESP32-S3 (QFN56) (revision v0.2)
[...]

Closes espressif#995
This change solves the issues when running on Windows
This commit adds test for overclock and watchdog. The tests are
executed only on ESP32-C3 as there would have to be a different
register value for each chip.
@Jason2866 Jason2866 closed this Sep 18, 2024
@Jason2866 Jason2866 reopened this Sep 18, 2024
@Jason2866 Jason2866 merged commit 7fd0e69 into main_work Sep 18, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants