-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ESPEFUSE fails to free the COM port after operations (ESPTOOL-321) #671
Comments
Hello @javipelopi, Is it possible to add By the way, there is a new option to execute espefuse operations in a custom python script, it may be suitable for your use case. |
Hi @radimkarnis
I believe, that executing espefuse operations in a custom script can be done manually step by step and pass an If you check on Thanks! |
Hi I have the same issue as OP but in my case I call ESPEFUSE:
When I get an exception from the code above (as example):
and try to call ESPEFUSE further in my Python script I get the following error:
So looks like ESPEFUSE doesn't release the COM port when throw an exception. ESPTOOL version: 4.3 Are there any workaround? |
Hi,
When using a custom script on Python 3 to use both ESPEFUSE and ESPTOOL, once I burn a custom MAC using ESPEFUSE, I want to flash the ESP32 using ESPTOOL.
The issue is ESPEFUSE doesn't release the COM port, so when I call ESPTOOL, it raises:
Unexpected error: could not open port 'COM5': PermissionError(13, 'Access is denied.', None, 5)
I believe, puting this line on the end of ESPEFUSE would solve the issue, however, I don't know if there is another way of doing this.
esp._port.close()
If there is a proper way of doing this without editing ESPEFUSE, please, let me know. Otherwise, could you fix it?
Thanks in advance,
The text was updated successfully, but these errors were encountered: