-
-
-
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 :(
-
-
-
Thats all my code, what else you need. I can upload here to my binaries. https://www.upload.ee/download/10990396/d43c5ce2825416a80736/espruino_2v04_esp8266_4mb.tgz
Accordingly PINs are right as hardware SPI. -
-
Hello
I've compiled my own v204 version of Espruino, using following params:
export FAMILY=ESP8266 export BOARD=ESP8266_4MB export FLASH_4MB=1 export ESP8266_SDK_ROOT=/mnt/disk1/home/marko/Workplace/Espruino/esp-open-sdk/sdk export PATH=$PATH:/mnt/disk1/home/marko/Workplace/Espruino/esp-open-sdk/xtensa-lx106-elf/bin export COMPORT=/dev/ttyUSB0 export USE_FILESYSTEM=1 export USE_NET=1 export USE_TELNET=1 export USE_CRYPTO=1 export USE_GRAPHICS=1 export USE_ESP8266=1 export RELEASE=1 make clean && make $*
And code in Espruino:
SPI1.setup({ sck:NodeMCU.D5, miso:NodeMCU.D6, mosi:NodeMCU.D7 }); E.connectSDCard(SPI1, NodeMCU.D8 /*CS*/); var f = E.openFile("log.txt", "w");
And constantly it crashes after "reading" or "writing" a file.
ets Jan 8 2013,rst cause:2, boot mode:(3,0) 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 ãìoì{òg|ìlld$`c|;dgàoãl`ãsdlþ ____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| 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
Any ideas why it crashes?
-
-
Seems like v197 will work with PN532. But not in v198. Only change what I found is here:
https://github.com/espruino/Espruino/commit/3739ee577d3bc11064b63db61942ac9910da0e3a@Gordon can you figure out why PN532 does not work in newer versions?
-
Hello guys
I've set my module to use I2C and using following example:I2C1.setup({scl:22, sda:21,}); var nfc = require("PN532").connect(I2C1); print(nfc.getVersion()); nfc.SAMConfig(); // start listening setInterval(function() { nfc.findCards(function(card) { print("Found card "+card); card = JSON.stringify(card); var leds = [LED1,LED2,LED3]; if (card=="[147,239,211,128]") digitalWrite(leds,1); if (card=="[249,192,235,164]") digitalWrite(leds,2); if (card=="[4,99,129,114,72,52,128]") digitalWrite(leds,4); }); }, 1000);
And I got I2C errors:
____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v01 (c) 2018 G.Williams Espruino is Open Source. Our work is supported only by sales of official boards and donations: http://espruino.com/Donate > WARNING: Scan stop failed WARNING: set rssi scan not implemeted yet WARNING: jshI2CSetup: driver installed, sda: 21 sdl: 22 freq: 1000000, ERROR: jshI2CWrite:, slave doesn't ACK the transfer. ERROR: jshI2CRead:, Operation timeout because the bus is busy. ERROR: jshI2CRead:, Operation timeout because the bus is busy. { "chip": "PN51c", "firmware": "232.254", "support": 63 } ERROR: jshI2CWrite:, Operation timeout because the bus is busy. ERROR: jshI2CRead:, Operation timeout because the bus is busy. ERROR: jshI2CRead:, Operation timeout because the bus is busy.
Any ideas why basic example does not work? Using ESP32 module.
-
Why simple button check will fail ??
pinMode(16, 'input_pulldown'); pinMode(17, 'input_pulldown'); setWatch(function(e) { console.log("Button 17 pressed"); }, 17, { repeat: true, edge: 'falling', debounce: 50 }); setWatch(function(e) { console.log("Button 16 pressed"); }, 16, { repeat: true, edge: 'falling', debounce: 50 });
And result is:
>ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_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) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:2364 load:0x40078000,len:0 load:0x40078000,len:10880 entry 0x40078c4c WARNING: setsockopt(SO_REUSPORT) failed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed Button 17 pressed >/mnt/c/Users/rhys/esp32/EspruinoBuildTools/esp32/build/esp-idf/components/freertos/./queue.c:1442 (xQueueGenericReceive)- assert failed! abort() was called at PC 0x4008a168 on core 0 Backtrace: 0x4008c743:0x3ffdbfb0 0x4008c76f:0x3ffdbfd0 0x4008a168:0x3ffdbff0 0x40107bda:0x3ffdc030 0x40109f04:0x3ffdc050 0x4010a253:0x3ffdc070 0x4010b536:0x3ffdc0c0 0x40136075:0x3ffdc140 0x401af1b1:0x3ffdc170 0x4015b2bb:0x3ffdc190 0x4015b51c:0x3ffdc1b0 0x4012e39c:0x3ffdc210 0x4012999f:0x3ffdc230 0x40129b05:0x3ffdc2a0 0x4014a845:0x3ffdc2c0 Rebooting... ets Jun 8 2016 00:22:57 rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:2364 load:0x40078000,len:0 load:0x40078000,len:10880 entry 0x40078c4c Button 17 pressed WARNING: setsockopt(SO_REUSPORT) failed
What could cause this :( ?
Other ways is to use setInterval to check digitalRead pin state... but this is not the right way :( -
Hello
Is it possible to attach both corest to Espruino software? ESP32 has 2 cores. Core 0 with Task1 and Core 1 with Task2.
Perhaps is possible to attach another Core via C++E.compiledC("xTaskCreatePinnedToCore( Task2code, /* Task function. */ "Task2", /* name of task. */ 10000, /* Stack size of task */ NULL, /* parameter of the task */ 1, /* priority of the task */ &Task2, /* Task handle to keep track of created task */ 1);");
Thanks!
I'll have exactly the same problem :(