These are chat archives for esp8266/Arduino

28th
Sep 2015
torntrousers
@torntrousers
Sep 28 2015 10:09
Does anyone have any ideas on #619 about rtc memory not be preserved over deepsleeps? A work around or hack i could try to fix it for now?
xbary
@xbary
Sep 28 2015 10:09
test ... two clients connected ferelnego DLink DWR-16, inquiries every 3 seconds. after corrections... thanks Igrr
girish kolte
@koltegirish
Sep 28 2015 10:32

hello folks,
Can anybody guide me how to resolve this error.It consistently occurs.
Fatal exception (28):
epc1=0x4000bf70, epc2=0x00000000, epc3=0x00000000, excvaddr=0x000000d4, depc=0x00000000

ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x40100000, len 30820, room 16
tail 4
chksum 0x15
load 0x3ffe8000, len 876, room 4
tail 8
chksum 0x21
load 0x3ffe8370, len 5172, room 0
tail 4
chksum 0xaa

csum 0xaa
rS
load …

KFNEXUS
@KFNEXUS
Sep 28 2015 13:09

Hi! I tried to use esp8266 sketch data upload, but have failed log like this:
Can anybody guide me how to resolve this error?

[SPIFFS] data : D:\ardurino\WiFiWebServer1\data
[SPIFFS] size : 3052
[SPIFFS] page : 256
[SPIFFS] block : 8192
/template.html
/test.py
[SPIFFS] upload : C:\Users\nexus\AppData\Local\Temp\build1505408049489865131.tmp/WiFiWebServer1.spiffs.bin
[SPIFFS] reset : nodemcu
[SPIFFS] port : COM3
[SPIFFS] speed : 115200
[SPIFFS] address: 0x100000

Uploading 3125248 bytes from C:\Users\nexus\AppData\Local\Temp\build1505408049489865131.tmp/WiFiWebServer1.spiffs.bin to flash at 0x00100000
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed
SPIFFS Upload failed!

KFNEXUS
@KFNEXUS
Sep 28 2015 14:05

Oh, sorry wrong log! This is real error log:

[SPIFFS] data : D:\ardurino\sketch_sep28a\data
[SPIFFS] size : 3052
[SPIFFS] page : 256
[SPIFFS] block : 8192
/template.html
/test.py
[SPIFFS] upload : C:\Users\nexus\AppData\Local\Temp\build4016371534304066310.tmp/sketch_sep28a.spiffs.bin
[SPIFFS] reset : ck
[SPIFFS] port : COM3
[SPIFFS] speed : 115200
[SPIFFS] address: 0x100000

warning: espcomm_sync failed
error: espcomm_open failed
SPIFFS Upload failed!

Steve Nelson
@zenmanenergy
Sep 28 2015 16:35
Has anyone seen this error on a nodemcu 12e? I only get it if I choose a flash size of 4m (1mspiffs). It doesn’t show up if I choose a flash size of 4m (3m spiffs)
/Users/stevenelson/Library/Arduino15/packages/esp8266/hardware/esp8266/1.6.5-1106-g8253b82/cores/esp8266/libc_replacements.c:408:22: warning: 'struct tm' declared inside parameter list [enabled by default]
time_t mktime(struct tm *timp) {
^
/Users/stevenelson/Library/Arduino15/packages/esp8266/hardware/esp8266/1.6.5-1106-g8253b82/cores/esp8266/libc_replacements.c:408:22: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/Users/stevenelson/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot open linker script file eagle.flash.4m1m.ld: No such file or directory
collect2: error: ld returned 1 exit status
Error compiling.
clearly it’s missing: eagle.flash.4m1m.ld can anyone verify that you have that file in your system?
Steve Nelson
@zenmanenergy
Sep 28 2015 16:40
Oh forget it… igrr just replied to my issue. looks like it’s fixed haa! talk about fast turn around. :-)
xbary
@xbary
Sep 28 2015 16:53

Igrr to be beer!
Today solved the problem of random crashes ESPa

I can still move with my project
LCD replace the Web browser.

Steve Nelson
@zenmanenergy
Sep 28 2015 18:59
I’m struggling a bit with SPIFFS. are there any other examples out there other than the configFile example?
Martin Ayotte
@martinayotte
Sep 28 2015 19:10
Which kind of example that you need ?
Steve Nelson
@zenmanenergy
Sep 28 2015 19:16
A couple simple ones for now. reading and writing text to a file. and reading/writing binary to a file (png file). I’m just getting datatype errors, because I’m guessing.
Martin Ayotte
@martinayotte
Sep 28 2015 19:24
Here is one for writting file :
        String filename = "/writetest.txt";
        File f = SPIFFS.open(filename.c_str(), "a"); 
        if (!f) {
          String str = "Can't open '" + filename + "' !\r\n";
          Serial.println(str);
        }
        else {
          String str = "Il etait une fois ...\r\n";
          f.write((uint8_t *)str.c_str(), str.length());
          f.close();
          Serial.println("Write done !\r\n");
        }
Martin Ayotte
@martinayotte
Sep 28 2015 19:32
Here is one for reading the same file :
        String filename = "/writetest.txt";
        File f = SPIFFS.open(filename.c_str(), "r");
        if (!f) {
          String str = "Can't open '" + filename + "' !\r\n";
          Serial.println(str);
        }
        else {
          char buf[1024];
          int siz = f.size();
          while(siz > 0) {
            size_t len = std::min((int)(sizeof(buf) - 1), siz);
            f.read((uint8_t *)buf, len);
            buf[len] = 0;
            Serial.println(buf);
            siz -= sizeof(buf) - 1;
          }
          f.close();
        }
Steve Nelson
@zenmanenergy
Sep 28 2015 19:32
Sweet. that worked. Thank you. one of these days I’m going to become proficient with c++ casting and pointers. But most days I just feel like an idiot with them.
I’m starting a github repository of simplified esp8266 arduino examples, mostly aimed for dummies like me. Also… so i have a reference for myself. haha
Ivan Grokhotkov
@igrr
Sep 28 2015 22:38
@Links2004 yep tags would really make sense. perhaps it's time to drop all the Arduino source code and leave just the esp8266 core?
right now we have lots of tags inherited from the IDE itself... so versions of the core are linked to the version of the IDE, which is kinda awkward.