Cannot start REPL after successful flash
Posted: Sat Mar 12, 2016 1:23 pm
I have two esp8266 boards:
* esp8266-01
* Olimex esp8266 - https://www.olimex.com/Products/IoT/MOD ... e-hardware
I can flash both boards successfully but when I connect to the REPL I just get a blank screen. I press 'Enter' but nothing happens.
I can flash and run C programs on both the esp8266 boards that I have so there is nothing wrong with the boards.
After flashing C programs the programs automatically start to run without changing any pin levels. Is that not true for micropython? Do I need to put it into boot after flashing?
This is the flash command that I use:
esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=2m 0 ../mp-esp8266-firmware-v01.bin
Output:
Connecting...
Erasing flash...
Wrote 451584 bytes at 0x00000000 in 45.3 seconds (79.7 kbit/s)...
Leaving...
Then I connect to the REPL like this:
screen /dev/ttyUSB0
or
screen /dev/ttyUSB0 -b 115200
Edit:
I think I know the error.
By default micropython is compiled to use port /dev/ttyACM0 as the port but I have /dev/ttyUSB0.
Is this it (or at least one of the errors)?
Could you please supply one firmware with each port option so no build is needed?
Update:
I did try to erase the flash as described in the email:
esptool.py --port /dev/ttyUSB0 erase_flash
But the result was just "Connecting...". No confirmation.
* esp8266-01
* Olimex esp8266 - https://www.olimex.com/Products/IoT/MOD ... e-hardware
I can flash both boards successfully but when I connect to the REPL I just get a blank screen. I press 'Enter' but nothing happens.
I can flash and run C programs on both the esp8266 boards that I have so there is nothing wrong with the boards.
After flashing C programs the programs automatically start to run without changing any pin levels. Is that not true for micropython? Do I need to put it into boot after flashing?
This is the flash command that I use:
esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=2m 0 ../mp-esp8266-firmware-v01.bin
Output:
Connecting...
Erasing flash...
Wrote 451584 bytes at 0x00000000 in 45.3 seconds (79.7 kbit/s)...
Leaving...
Then I connect to the REPL like this:
screen /dev/ttyUSB0
or
screen /dev/ttyUSB0 -b 115200
Edit:
I think I know the error.
By default micropython is compiled to use port /dev/ttyACM0 as the port but I have /dev/ttyUSB0.
Is this it (or at least one of the errors)?
Could you please supply one firmware with each port option so no build is needed?
Update:
I did try to erase the flash as described in the email:
esptool.py --port /dev/ttyUSB0 erase_flash
But the result was just "Connecting...". No confirmation.