Page 1 of 1

Can't copy files, repl works [SOLVED]

Posted: Thu Apr 01, 2021 9:25 pm
by mflmartin
Hi,

So I did the following steps in 3 units (2 black esp8266 and 1 blue one), and I have the exact same problem in all of them. I trie different cables, different power sources, almost everything, but I keep getting the same behaviour. I also tried to flash them with NODEMCU programmer, instead of esptool, and aside from the flashing taking 10x than with esptool, the same problem arises. I can't copy files with pyboard.py, or with mpfshell... or create a directory. But I can invoke the repl, with putty or with mpfshell.

Here are the steps:

Code: Select all

(micropy) λ esptool --port COM6 erase_flash
esptool.py v3.0
Serial port COM6
Connecting........_
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 5c:cf:7f:0f:0a:db
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 2.3s
Hard resetting via RTS pin...


(micropy) λ esptool --port COM6 --baud 460800 write_flash --flash_size=detect -fm dio 0 esp8266-20210202-v1.14.bin
esptool.py v3.0
Serial port COM6
Connecting.....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 5c:cf:7f:0f:0a:db
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 1MB
Flash params set to 0x0220
Compressed 632064 bytes to 415345...
Wrote 632064 bytes (415345 compressed) at 0x00000000 in 9.3 seconds (effective 541.1 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

(micropy) λ mpfshell

** Micropython File Shell v0.9.1, sw@kaltpost.de **
-- Running on Python 3.7 using PySerial 3.5 --

mpfs [/]> open COM6
Connected to esp8266
mpfs [/]> ls

Remote files in '/':


mpfs [/]> put main.py

Failed to create file: main.py

mpfs [/]> repl
>
*** Exit REPL with Ctrl+Q ***

MicroPython v1.14 on 2021-02-02; ESP module with ESP8266
Type "help()" for more information.
>>> import port_diag
FlashROM:
Flash ID: 1440e0 (Vendor: e0 Device: 4014)
Flash bootloader data:
Byte @2: 02
Byte @3: 20 (Flash size: 1MB Flash freq: 40MHZ)
Firmware checksum:
size: 632048
md5: fccbe03ec7fd06fcfa29ccb626bb3db1
True

Networking:
STA ifconfig: ('0.0.0.0', '0.0.0.0', '0.0.0.0', '208.67.222.222')
AP ifconfig: ('192.168.4.1', '255.255.255.0', '192.168.4.1', '208.67.222.222')
Free WiFi driver buffers of type:
0: 8 (1,2 TX)
1: 0 (4 Mngmt TX(len: 0x41-0x100))
2: 8 (5 Mngmt TX (len: 0-0x40))
3: 4 (7)
4: 7 (8 RX)
lwIP PCBs:
Active PCB states:
Listen PCB states:
TIME-WAIT PCB states:
I don't know what else to test. To be honest. It is weird that the repl works, but other things do not.


Thanks in advance!

Re: Can't copy files, repl works

Posted: Thu Apr 01, 2021 9:41 pm
by mflmartin
Note: Updated initial post with complete steps.

Re: Can't copy files, repl works

Posted: Thu Apr 01, 2021 10:51 pm
by mflmartin
Replying to myself:

I installed a v1.14 version, which requires 2Mb or more of Flash, in a 1MB flash ESP8266. Hence, the repl works, but the filesystem doesn't.

I downloaded the correct stable version for 1MB devices, and it works now.

Closed.