scientifichackers / ampy

MicroPython Tool - Utility to interact with a MicroPython board over a serial connection.
MIT License
720 stars 157 forks source link

Problem with ESP32 #39

Closed zpowellman closed 6 years ago

zpowellman commented 6 years ago

ampy works well using wemos d1 mini, but has some problems with the ESP_Core_Board_V2 If I issue "ampy ls" command, the files in the directory appear. Issuing same command again, ampy hangs.

"ampy put file.py" sends file OK, but ampy never returns. Tried on 2 different modules.

ds2k5 commented 6 years ago

same issue

ampy 1.2.6 with ESP-WROOM-32

ampy --port /dev/ttyUSB0 ls

hang no respond

lsusb

Bus 001 Device 004: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light

esptool.py chip_id esptool.py v2.2.1 Connecting........_ Detecting chip type... ESP32 Chip is ESP32D0WDQ6 (revision 1) Uploading stub... Running stub... Stub running... Chip ID: 0x2430aea40ecf Hard resetting...

esptool.py read_flash 0x0 4194304 esp-WROOM-32_backup.bin

binwalk esp-WROOM-32_backup.bin

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
153980        0x2597C         Unix path: /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/esp32/./crosscore_int.c
155076        0x25DC4         Unix path: /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/esp32/./intr_alloc.c
155936        0x26120         Unix path: /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/./heap_regions.c
157188        0x26604         Unix path: /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/newlib/./locks.c
159548        0x26F3C         Unix path: /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/nvs_flash/src/nvs_pagemanager.cpp
161488        0x276D0         Unix path: /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/vfs/./vfs.c
ds2k5 commented 6 years ago

sorry my fault, if I flash microPython firmware on the device ampy works... :-)

esptool.py --port /dev/ttyUSB0 erase_flash esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 esp32-20180128-v1.9.3-240-ga275cb0f.bin

zpowellman commented 6 years ago

ampyesp32.txt esp32putty Here's my experience. jpg was taken after programming and reset. puTTY was then closed and ampy command issued. Board is ESP core_board_V2. Three boards operate pretty much the same. Thanks for looking Best Regards, Dan Powell