-
Hi. a have same question, but with esp8266. need to save one variable after manual change and restore it from memory after reboot.
//actuation temp. this variable need to store and restore from memory let maxTemp = 21; buttonPlus.on('click', function() { maxTemp++; save(); }); buttonMinus.on('click', function() { maxTemp--; save(); });
thanks
-
-
Thanks for all for answers
on this moment:
esptool.py v2.3.1
erase and flash - all okflash id output:
C:\Users\Joshua\Desktop\espruino>python "../esptool/esptool.py" --port COM46 flash_id esptool.py v2.3.1 Connecting.... Detecting chip type... ESP8266 Chip is ESP8266EX Features: WiFi Uploading stub... Running stub... Stub running... Manufacturer: 20 Device: 4016 Detected flash size: 4MB Hard resetting via RTS pin...
flash log and command line ooutput:
C:\Users\Joshua\Desktop\espruino>python "../esptool/esptool.py" --port COM46--baud 460800 write_flash --flash_freq 80m --flash_mode qio --flash_size 4MB-c1 0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin 0x3FC000 esp_init_data_default.bin 0x3FE000 blank.bin esptool.py v2.3.1 Connecting.... Detecting chip type... ESP8266 Chip is ESP8266EX Features: WiFi Uploading stub... Running stub... Stub running... Changing baud rate to 460800 Changed. Configuring flash size... Flash params set to 0x006f Compressed 3856 bytes to 2763... Wrote 3856 bytes (2763 compressed) at 0x00000000 in 0.1 seconds (effective 482.0 kbit/s)... Hash of data verified. Compressed 533204 bytes to 351868... Wrote 533204 bytes (351868 compressed) at 0x00001000 in 7.9 seconds (effective 539.4 kbit/s)... Hash of data verified. Compressed 128 bytes to 77... Wrote 128 bytes (77 compressed) at 0x003fc000 in 0.0 seconds (effective 204.8 kbit/s)... Hash of data verified. Compressed 4096 bytes to 26... Wrote 4096 bytes (26 compressed) at 0x003fe000 in 0.0 seconds (effective 6553.5 kbit/s)... Hash of data verified. Leaving... Hard resetting via RTS pin...
IDE still dont recognize board
if i flash stock esp8266 4mb firmware - everething work ok, but without 'fs' support
-
Thanks
i try to flash board with Yours coomand, but as result i have:<address> <filename> [<address> <filename> ...] esptool write_flash: error: argument --flash_size/-fs: invalid choice: '4mb-c1' (choose from '4m', '2m', '8m', '16m', '32m', '16m-c1', '32m-c1', '32m-c2')
after change 4MB-c1 to 4m
all flashed succses, but IDE don't recognize board -
-
Hi
First of all - sorry for bad EnglishI try to connect SDCard to NodeMCU with Espruino 1.96 firmware with this manual
function onInit() { // initialise SPI1 for SDCard module SPI1.setup({mosi:NodeMCU.D6, miso:NodeMCU.D7, sck:NodeMCU.D5}); E.connectSDCard(SPI1, NodeMCU.D0 /*CS*/); console.log(require("fs").readdirSync()); // ... }
bu as result - i see this in console:
Uncaught Error: Function "connectSDCard" not found! at line 2 col 5 E.connectSDCard(SPI1, NodeMCU.D0 /*CS*/); ^ in function called from system
what i do wrong?
thanks
All working. Thanks a lot!!)