Page 1 of 1
espefuse.py could not write efuse in Windows msys2
Posted: Thu Jun 08, 2017 6:27 am
by temp4eb
"espefuse.py burn_efuse" command could not work in windows msys2 environment. I was only able to display current settings using "summary" command.But if I run "espefuse.py burn_efuse XPD_SDIO_TIEH 1" it hang until interrupted by ctrl+c.
Code: Select all
$ ./espefuse.py burn_efuse XPD_SDIO_FORCE
espefuse.py v2.0-beta3
Connecting........__
Re: espefuse.py could not write efuse in Windows msys2
Posted: Thu Jun 08, 2017 7:14 am
by ESP_Angus
temp4eb wrote:
Code: Select all
$ ./espefuse.py burn_efuse XPD_SDIO_FORCE
espefuse.py v2.0-beta3
Connecting........__
The "Connecting..." stage is the same for all espefuse.py (and esptool.py) commands. So if it worked for one command and not for another, this is probably not the command - it may be because of serial communication issues or problems resetting the ESP32 into debug mode. Consult the troubleshooting section here:
https://github.com/espressif/esptool#bo ... nt-respond
BTW, there is a convenience command "espefuse.py set_flash_voltage xxx" for setting VDD_SDIO registers. See
https://github.com/espressif/esptool/wi ... e-vdd_sdio
Re: espefuse.py could not write efuse in Windows msys2
Posted: Fri Sep 08, 2017 1:11 am
by kearins
I had the same problem: could not complete 'espefuse.py set_flash_voltage xxx' on windows msys32. Process hung on 'Connecting........__ '. The esp-idf installation was made 9-aug-2017. I updated esptool from
https://github.com/espressif/esptool today (8-sent-2017) and now the command is executed perfectly.
Re: espefuse.py could not write efuse in Windows msys2
Posted: Mon Sep 11, 2017 3:38 am
by temp4eb
kearins wrote:I had the same problem: could not complete 'espefuse.py set_flash_voltage xxx' on windows msys32. Process hung on 'Connecting........__ '. The esp-idf installation was made 9-aug-2017. I updated esptool from
https://github.com/espressif/esptool today (8-sent-2017) and now the command is executed perfectly.
Many Thanx!And could you please share your updated code?Thanx!
Re: espefuse.py could not write efuse in Windows msys2
Posted: Mon Sep 11, 2017 5:43 am
by kearins
temp4eb wrote:Many Thanx!And could you please share your updated code?Thanx!
I did not make any changes in source code, I've just updated my old version of esptool with new one.
Re: espefuse.py could not write efuse in Windows msys2
Posted: Mon Sep 11, 2017 6:08 am
by ESP_Angus
Sorry for the inconvenience with this.
There was a bug in espefuse.py on Windows where it would over-buffer output. It's actually prompting "This is an irreversible operation ... Type 'BURN' (all capitals) to continue." but due to buffering this output is not correctly flushed to the console.
As others have pointed out, this bug is fixed in the latest version of esptool. Alternatively you can run "espefuse.py --do-not-confirm [...]" to bypass the confirmation prompt. Note that the confirmation is intended to prevent you accidentally burning the wrong efuses, so please check the command line arguments carefully when using it!
Re: espefuse.py could not write efuse in Windows msys2
Posted: Mon Sep 11, 2017 10:46 am
by temp4eb
ESP_Angus wrote:Sorry for the inconvenience with this.
There was a bug in espefuse.py on Windows where it would over-buffer output. It's actually prompting "This is an irreversible operation ... Type 'BURN' (all capitals) to continue." but due to buffering this output is not correctly flushed to the console.
As others have pointed out, this bug is fixed in the latest version of esptool. Alternatively you can run "espefuse.py --do-not-confirm [...]" to bypass the confirmation prompt. Note that the confirmation is intended to prevent you accidentally burning the wrong efuses, so please check the command line arguments carefully when using it!
Understood and thanx!I will try the latest version.