Hi, I am just starting out and I use Thonny ide on Raspberry pi to do experimenting on Micropython on esp8266.
I have tried using ‘pip3 install esptool’ to install esptool.
However running python3 esptool.py -p /dev/ttyUSB0 erase_flash gives me ‘python3 cannot find esptool, error no file or directory by that name.
I have run it before on windows with no problem. I am trying to set up dev kit based on raspberry pi to my kid.
Sure hope someone can show me how to fix this.
uPyCraft IDE has a visual interface to burn micropython on an ESP8266. This IDE is not as intuitive as Thonny IDE, but it has this nice feature:https://randomnerdtutorials.com/flash-upload-micropython-firmware-esp32-esp8266/
Can you tell me the exact command you typed to run the erase flash command?
Thank you for your reply.
I was following a tutorial and the command was ‘python esptool.py’.
I discovered that the command was actually ‘esptool.py -p /dev/ttyUSB0 erase_flash’ and that did the trick.
Next, How do I install uPyCraft on raspberrypi?
It is better to use Thonny IDE on Raspberry Pi, because I think at the moment it comes installed by default.
You can follow this tutorial to flash micropython without upycraft (if you’re using Raspberry Pi): https://randomnerdtutorials.com/flashing-micropython-firmware-esptool-py-esp32-esp8266/