I have Micropython 2.7.x downloaded. I keep typing pip install esptool but then I get an error message. The message says "SyntaxError: invalid syntax""
Any suggestions?
trouble with loading the flashing tool
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- tannewt
- Posts: 3304
- Joined: Thu Oct 06, 2016 8:48 pm
Re: trouble with loading the flashing tool
Hi wchspltw,
pip is a shell command, not a Python one. So, use cmd.exe or powershell to run pip2 instead.
Let me know how it goes.
~Scott
pip is a shell command, not a Python one. So, use cmd.exe or powershell to run pip2 instead.
Let me know how it goes.
~Scott
- wchspltw
- Posts: 8
- Joined: Mon May 09, 2016 6:13 pm
Re: trouble with loading the flashing tool
Back at this.....I am now stuck on the port setting. The tutorials are fuzzy on how to exactly how to set the path to the serial port so that I can erase the flash and install the new firmware. I have installed the correct Windows drivers. I can see the the Huzzah connected to COM7 under the Device Manager. When I disconnect the Huzzah, the port disappears. The two commands below are the generic ones used in the tutorial. I have been looking to find how to modify these commands so that they will work with Windows10.
>esptool.py --port /path/to/ESP8266 erase_flash
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 esp8266-2016-05-03-v1.8.bin
>esptool.py --port /path/to/ESP8266 erase_flash
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 esp8266-2016-05-03-v1.8.bin
- wchspltw
- Posts: 8
- Joined: Mon May 09, 2016 6:13 pm
Re: trouble with loading the flashing tool
I am looking for how to change the
"path/to"
and the
"dev/ttyUSB0" sections of the commands to what would work in Windows.
I have been scouting around the Windows forum, but I was hoping that someone with experience could help me out.
"path/to"
and the
"dev/ttyUSB0" sections of the commands to what would work in Windows.
I have been scouting around the Windows forum, but I was hoping that someone with experience could help me out.
- tannewt
- Posts: 3304
- Joined: Thu Oct 06, 2016 8:48 pm
Re: trouble with loading the flashing tool
I don't use Windows often but I believe it would be:
Code: Select all
esptool.py --port COM7 --baud 460800 write_flash --flash_size=detect 0 esp8266-2016-05-03-v1.8.bin
- wchspltw
- Posts: 8
- Joined: Mon May 09, 2016 6:13 pm
Re: trouble with loading the flashing tool
Things seem to be working fine until I made it to the using the REPL step. I tried both PuTTY and TeraTerm. Using both of these resulted in a nonstop stream of meaningless data. Any suggestions?
- Attachments
-
- putty.JPG (11.99 KiB) Viewed 450 times
- tannewt
- Posts: 3304
- Joined: Thu Oct 06, 2016 8:48 pm
Re: trouble with loading the flashing tool
Make sure your baud rate is 115200. If its not, it can end up garbled like that.
- wchspltw
- Posts: 8
- Joined: Mon May 09, 2016 6:13 pm
Re: trouble with loading the flashing tool
Yes, I have the baud rate set to 115200 and the correct serial port. Could this be what happens if I did not correctly wipe off the chip before installing the MicroPython? Or, is this something else?
- tannewt
- Posts: 3304
- Joined: Thu Oct 06, 2016 8:48 pm
Re: trouble with loading the flashing tool
Its worth trying to erase the flash and reflashing it. You can also try disconnecting and reconnecting the board. I don't know of any other problems that lead to output like that so I'm a bit stumped.
Please be positive and constructive with your questions and comments.