trouble with loading the flashing tool

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
wchspltw
 
Posts: 8
Joined: Mon May 09, 2016 6:13 pm

trouble with loading the flashing tool

Post by wchspltw »

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?
command line errors.JPG
command line errors.JPG (47.9 KiB) Viewed 521 times

User avatar
tannewt
 
Posts: 3304
Joined: Thu Oct 06, 2016 8:48 pm

Re: trouble with loading the flashing tool

Post by tannewt »

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

User avatar
wchspltw
 
Posts: 8
Joined: Mon May 09, 2016 6:13 pm

Re: trouble with loading the flashing tool

Post by wchspltw »

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

User avatar
wchspltw
 
Posts: 8
Joined: Mon May 09, 2016 6:13 pm

Re: trouble with loading the flashing tool

Post by wchspltw »

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.

User avatar
tannewt
 
Posts: 3304
Joined: Thu Oct 06, 2016 8:48 pm

Re: trouble with loading the flashing tool

Post by tannewt »

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

User avatar
wchspltw
 
Posts: 8
Joined: Mon May 09, 2016 6:13 pm

Re: trouble with loading the flashing tool

Post by wchspltw »

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
putty.JPG (11.99 KiB) Viewed 450 times

User avatar
tannewt
 
Posts: 3304
Joined: Thu Oct 06, 2016 8:48 pm

Re: trouble with loading the flashing tool

Post by tannewt »

Make sure your baud rate is 115200. If its not, it can end up garbled like that.

User avatar
wchspltw
 
Posts: 8
Joined: Mon May 09, 2016 6:13 pm

Re: trouble with loading the flashing tool

Post by wchspltw »

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?

User avatar
tannewt
 
Posts: 3304
Joined: Thu Oct 06, 2016 8:48 pm

Re: trouble with loading the flashing tool

Post by tannewt »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”