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?
@markopraakli started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello
I've compiled my own v204 version of Espruino, using following params:
And code in Espruino:
And constantly it crashes after "reading" or "writing" a file.
Any ideas why it crashes?