简体   繁体   中英

ampy no longer connecting

I had ampy working for a while. It was intermittent after that, and now it doesn't work most of the time. I'm able to run esptool.py --port COM3 flash_id and esptool.py --port COM3 chip_id , but when I try to run ampy --port COM3 ls or ampy --port COM3 run test.py it just hangs.

I've tried:

  • Restarting computer
  • Shutting down computer
  • Different USB ports
  • Different ESP32s and ESP8266s

Any ideas?

I learned that different devices in the same family need to be flashed differently. I was flashing MicroPython with ESP-Now on a Wemos D1 Mini using:

esptool.py --chip esp8266 --port COM11 write_flash -z 0x1000 C:\Users\Main\Downloads\firmware-esp8266-GENERIC.bin

and it should have been:

esptool.py --port COM11 --baud 1000000 write_flash --flash_size=4MB -fm dio 0 C:\Users\Main\Downloads\firmware-esp8266-GENERIC.bin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

Related Question
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM