Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By brutzler
#25559 Now trying NODEMCU FIRMWARE PROGRAMMER:
spiffs.jpg


Looks better: Flash successful.
But:
Code: Select all    Dir dir = SPIFFS.openDir("/spiffs");
    Serial.println("Dateien im Verzeichnis:");   
    while (dir.next()) {
      Serial.println(dir.fileName());
    }

doesn't show any files....


@martinayotte:
You are sure, the offset = 0x6b000h???
512k-64k is IMHO 0x70000h. If I assume, that the SPIFF-area is at the end of the flash
You do not have the required permissions to view the files attached to this post.
Last edited by brutzler on Mon Aug 10, 2015 1:50 pm, edited 1 time in total.
User avatar
By brutzler
#25562 With the NodeMCU tool, UploadMode is done automatically (like Arduino IDE) on my NodeMCU (ESP-12E)

Upload with Offset 0x70000h -> same result: empty directory

EDIT:
- Flashed a program on the ESP. Writing a file (Test.txt) into spiffs.
- Restart the ESP: "Test.txt" is available :)
- Flashing my spifftest.bin (with testspiffs.txt in it) with the NodeMCU-Tool at 0x70000h
- Restart the ESP: "Test.txt" still available. :shock:

Main question for me: how to know, what is the right offset???

Can you confirm this for a 512K Flash with 64K SPIFFS ?
spiffs.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
By martinayotte
#25567
brutzler wrote:@martinayotte:
You are sure, the offset = 0x6b000h???
512k-64k is IMHO 0x70000h. If I assume, that the SPIFF-area is at the end of the flash


Nope, you need to leave space for the Wifi settings.
Look at the board.txt for the different flavors of SPIFFS.

BTW, look at the other post, I've got some partial success, but still some issues.

viewtopic.php?f=32&t=4404&start=20#p25547