Hello,
after having the issue with not being able to write files in ESP8266-01 SPIFFS (PUYA Flash Problem) I upgraded to ESP8266 Core 2.5.2.
As read, I edited the ESP.h and changed the lines
#ifndef PUYA_SUPPORT
#define PUYA_SUPPORT 0
#endif
to
#define PUYA_SUPPORT 1
OK. After that, I could write to SPIFFS Files via program on ESP8266-01.
But now, the ESP8266 Sketch Data Upload does not work any more.
After some investigation in forums I found, that the ESP8266FS.jar File in
...\Arduino\tools\ESP8266FS\tool
should be changed to a new version.
For that I found ESP8266FS-0.4.0.zip with
esp8266fs.jar, 7.154Bytes, 23.02.2019 in it and placed it instead
of the old one.
But I still have issues reported from esptool.py and no files are uploaded into
the SPIFFS area.
See the following protocol from Arduino IDE (ESP8266-01)
[SPIFFS] data : ....\JC_ESPBridge-V3.1\data
[SPIFFS] size : 64
[SPIFFS] page : 256
[SPIFFS] block : 4096
/showerror.html
/exit.html
/jc.css
/getparam.html
/ackparam.html
[SPIFFS] upload : ....\AppData\Local\Temp\arduino_build_866747/JC_ESPBridge-V3.1.spiffs.bin
[SPIFFS] address : 0x6B000
[SPIFFS] reset : ck
[SPIFFS] port : COM3
[SPIFFS] speed : 256000
[SPIFFS] python : ....\AppData\Local\Arduino15\packages\esp8266\tools\python\3.7.2-post1\python.exe
[SPIFFS] uploader : ....\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\tools\upload.py
esptool.py v2.6
Serial port COM3
Connecting......
Chip is ESP8266EX
Features: WiFi
MAC: 68:c6:3a:83:f5:89
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 256000
Changed.
Configuring flash size...
Auto-detected Flash size: 1MB
Compressed 65536 bytes to 1568...
Writing at 0x0006b000... (100 %)
Wrote 65536 bytes (1568 compressed) at 0x0006b000 in 0.2 seconds (effective 2780.2 kbit/s)...
Traceback (most recent call last):
File "....\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\tools\upload.py", line 25, in
esptool.main(fakeargs)
File "..../AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 2698, in main
operation_func(esp, args)
File "..../AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 2177, in write_flash
res = esp.flash_md5sum(address, uncsize)
File "..../AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 104, in inner
return func(*args, **kwargs)
File "..../AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 651, in flash_md5sum
timeout=timeout)
File "..../AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 354, in check_command
val, data = self.command(op, data, chk, timeout=timeout)
File "..../AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 332, in command
p = self.read()
File "..../AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 277, in read
return next(self._slip_reader)
File "..../AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 1889, in slip_reader
raise FatalError('Invalid head of packet (0x%s)' % hexify(b))
esptool.FatalError: Invalid head of packet (0x1C)
SPIFFS Upload failed!
As you can see I get a positve report first
Wrote 65536 bytes (1568 compressed) at 0x0006b000 in 0.2 seconds (effective 2780.2 kbit/s)...
and THAN the traceback.
Tools-Setting in IDE is: (see picture)
Does some has a hint how to fix it?
Thank you in advance!
Regards from Hamburg
Andree
