Hi mzimmers,
Sorry, I gave you some incorrect information - I thought that "pip install esptool" would install an esptool.py.exe on the PATH, but it's actually "esptool.exe".
I ran through the install steps on a clean VM again. You should be able to run:
Code: Select all
esptool write_flash 0x9000 nvs_reuse.bin
In the ESP-IDF Tools Command Prompt window, and this should work.
(You could also choose to "pip install esptool" inside your global Python install to run esptool.exe from any command prompt window.)
BTW, even though ESP-IDF build system will print full paths to everything:
Code: Select all
C:\Users\gus\.espressif\python_env\idf4.0_py2.7_env\Scripts\python.exe ..\..\..\components\esptool_py\esptool\esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build\bootloader\bootloader.bin 0x8000 build\partition_table\partition-table.bin 0x10000 build\hello-world.bin
You can strip off the first part and run this, if you're in the ESP-IDF Command Prompt then python.exe is on the PATH:
Code: Select all
python.exe ..\..\..\components\esptool_py\esptool\esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build\bootloader\bootloader.bin 0x8000 build\partition_table\partition-table.bin 0x10000 build\hello-world.bin
OR
Code: Select all
python.exe %IDF_PATH%\components\esptool_py\esptool\esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build\bootloader\bootloader.bin 0x8000 build\partition_table\partition-table.bin 0x10000 build\hello-world.bin
(These last two work without the "pip install esptool" step required.)