markopraakli
Member since Jan 2019 • Last active Mar 2021Most recent activity
-
-
-
- 3 comments
- 2,442 views
-
Hello
I've problem with my ESP32. I tried to use KeyPad module and I tried to use Pins like D0,6,8 but suddenly my ESP will not cooperate any more. I've tried to erase flash and reflash with different firmwares and with different baud rates but still no luck.rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) flash read err, 1000 ets_main.c 371 ets Jun 8 2016 00:22:57 rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) flash read err, 1000 ets_main.c 371 ets Jun 8 2016 00:22:57 rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) flash read err, 1000 ets_main.c 371 ets Jun 8 2016 00:22:57
-
I'm using WebIDE, there is possible to use "console" also :) But, still no luck. I recompiled without Graphics and still same behavior. Using this following test code:
function onInit(){ console.log(JSON.stringify(process.env)); console.log('A: ', process.memory()); require("ESP8266").logDebug(true); require("ESP8266").setLog(2); console.log(require("ESP8266").getState()); console.log('B: ', process.memory()); var fs = require("fs"); console.log('C: ', process.memory()); SPI1.setup({ sck:NodeMCU.D5, miso:NodeMCU.D6, mosi:NodeMCU.D7 }); E.connectSDCard(SPI1, NodeMCU.D8 /*CS*/); console.log('D: ', process.memory()); console.log(fs.readdirSync()); console.log('E: ', process.memory()); console.log(fs.readFileSync("test.txt")); console.log('F: ', process.memory()); }
And here is a result:
____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v04 (c) 2019 G.Williams Espruino is Open Source. Our work is supported only by sales of official boards and donations: http://espruino.com/Donate Flash map 4MB:1024/1024, manuf 0x5e chip 0x4016 {"VERSION":"2v04","GIT_COMMIT":"3956264e","BOARD":"ESP8266_4MB","FLASH":0,"RAM":81920,"SERIAL":"500291c3-483d","CONSOLE":"Serial1","MODULES":"Flash,Storage,heatshrink,fs,net,dgram,http,NetworkJS,Wifi,ESP8266,TelnetServer,crypto,neopixel","EXPTR":1073643640} A: { "free": 1508, "usage": 92, "total": 1600, "history": 62, "gc": 0, "gctime": 1.913 } { "sdkVersion": "2.2.0-dev(9422289)", "cpuFrequency": 160, "freeHeap": 12888, "maxCon": 10, "flashMap": "4MB:1024/1024", "flashKB": 4096, "flashChip": "0x5e 0x4016" } B: { "free": 1505, "usage": 95, "total": 1600, "history": 62, "gc": 0, "gctime": 1.915 } C: { "free": 1502, "usage": 98, "total": 1600, "history": 62, "gc": 0, "gctime": 1.897 } D: { "free": 1479, "usage": 121, "total": 1600, "history": 62, "gc": 0, "gctime": 1.934 } [ "System Volume Information", "test.txt" ] E: { "free": 1479, "usage": 121, "total": 1600, "history": 62, "gc": 0, "gctime": 1.936 } 53313> Fatal exception 3(LoadStoreErrorCause): ÿ53314> epc1=0x4000bdcb, epc2=0x00000000, epc3=0x00000000, excvaddr=0x4026e0d0, depc=0x00000000 ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x40100000, len 2408, room 16 tail 8 chksum 0xe5 load 0x3ffe8000, len 776, room 0 tail 8 chksum 0x84 load 0x3ffe8310, len 632, room 0 tail 8 chksum 0xd8 csum 0xd8 2nd boot version : 1.6 SPI Speed : 80MHz SPI Mode : DIO SPI Flash Size & Map: 32Mbit(1024KB+1024KB) jump to run user1 @ 1000 âägä{ón|ìldll`cÛ|slgàoãd`ãsllþ ____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v04 (c) 2019 G.Williams Espruino is Open Source. Our work is supported only by sales of official boards and donations: http://espruino.com/Donate Flash map 4MB:1024/1024, manuf 0x5e chip 0x4016 >
And xtensa doc says that error "Fatal exception 3(LoadStoreErrorCause)" is described as "Processor internal physical address or data error during load or store [Exception Option]".
-
Well well well... now this is strange. I'm able to list content of SD card, but still unable to read or write.
I formatted SD card to FAT32 and wrote a empty file test.txt and then executed same example. Also I tried to use SoftwareSPI, different pins ... but still same behavior .
____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v04 (c) 2019 G.Williams Espruino is Open Source. Our work is supported only by sales of official boards and donations: http://espruino.com/Donate Flash map 4MB:1024/1024, manuf 0x5e chip 0x4016 >[ "System Volume Information", "test.txt" ] >require("fs").readFileSync("test.txt") ets Jan 8 2013,rst cause:2, boot mode:(3,7) load 0x40100000, len 2408, room 16 tail 8 chksum 0xe5 load 0x3ffe8000, len 776, room 0 tail 8 chksum 0x84 load 0x3ffe8310, len 632, room 0 tail 8 chksum 0xd8 csum 0xd8 2nd boot version : 1.6 SPI Speed : 80MHz SPI Mode : DIO SPI Flash Size & Map: 32Mbit(1024KB+1024KB) jump to run user1 @ 1000 ãägä;ón|ìldll`cÛ<slgàgãd`ãsldþ ____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v04 (c) 2019 G.Williams Espruino is Open Source. Our work is supported only by sales of official boards and donations: http://espruino.com/Donate Flash map 4MB:1024/1024, manuf 0x5e chip 0x4016
What I'm doing wrong :(
-
-
I'll have exactly the same problem :(