I own an ESP32 board (Lilygo TTGO T-Display).
I’d like to burn the internal efuses that select the interval voltage so I always have a 3.3V regulator.
This is explained here:
Note about GPIO12
I have downlaoded and installed everything.
When I run the command:
<code>components/esptool_py/esptool/espefuse.py set_flash_voltage 3.3V
</code>
<code>components/esptool_py/esptool/espefuse.py set_flash_voltage 3.3V
</code>
components/esptool_py/esptool/espefuse.py set_flash_voltage 3.3V
I get:
<code>components/esptool_py/esptool/espefuse.py: line 7: import: command not found
components/esptool_py/esptool/espefuse.py: line 8: import: command not found
components/esptool_py/esptool/espefuse.py: line 11: syntax error near unexpected token `subprocess.run'
components/esptool_py/esptool/espefuse.py: line 11: ` sys.exit(subprocess.run([sys.executable, '-m', 'espefuse'] + sys.argv[1:]).returncode)'
</code>
<code>components/esptool_py/esptool/espefuse.py: line 7: import: command not found
components/esptool_py/esptool/espefuse.py: line 8: import: command not found
components/esptool_py/esptool/espefuse.py: line 11: syntax error near unexpected token `subprocess.run'
components/esptool_py/esptool/espefuse.py: line 11: ` sys.exit(subprocess.run([sys.executable, '-m', 'espefuse'] + sys.argv[1:]).returncode)'
</code>
components/esptool_py/esptool/espefuse.py: line 7: import: command not found
components/esptool_py/esptool/espefuse.py: line 8: import: command not found
components/esptool_py/esptool/espefuse.py: line 11: syntax error near unexpected token `subprocess.run'
components/esptool_py/esptool/espefuse.py: line 11: ` sys.exit(subprocess.run([sys.executable, '-m', 'espefuse'] + sys.argv[1:]).returncode)'
Here’s the espefuse.py file:
<code>#
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: Apache-2.0
#
import subprocess
import sys
if __name__ == '__main__':
sys.exit(subprocess.run([sys.executable, '-m', 'espefuse'] + sys.argv[1:]).returncode)
</code>
<code>#
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: Apache-2.0
#
import subprocess
import sys
if __name__ == '__main__':
sys.exit(subprocess.run([sys.executable, '-m', 'espefuse'] + sys.argv[1:]).returncode)
</code>
#
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: Apache-2.0
#
import subprocess
import sys
if __name__ == '__main__':
sys.exit(subprocess.run([sys.executable, '-m', 'espefuse'] + sys.argv[1:]).returncode)
I have read the documentations three times, downloaded and installed everything needed.
What am I doing wrong?
1