Avatar for Joshua_Sturmvogel

Joshua_Sturmvogel

Member since Mar 2018 • Last active Oct 2020
  • 1 conversations
  • 7 comments

Most recent activity

  • in General
    Avatar for Joshua_Sturmvogel

    All working. Thanks a lot!!)

  • in General
    Avatar for Joshua_Sturmvogel

    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

  • in ESP8266
    Avatar for Joshua_Sturmvogel

    Sorry for long time waiting
    in attach IDE settings and console output

  • in ESP8266
    Avatar for Joshua_Sturmvogel

    Thanks for all for answers

    on this moment:
    esptool.py v2.3.1
    erase and flash - all ok

    flash 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

  • in ESP8266
    Avatar for Joshua_Sturmvogel

    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

  • in ESP8266
    Avatar for Joshua_Sturmvogel

    Hi
    Sorry, can anyone share esp8266 nodeMCU firmware with working SDCard?
    i dont now, how to compile it :(
    Thanks, and sorry for bad english

  • in ESP8266
    Avatar for Joshua_Sturmvogel

    Hi
    First of all - sorry for bad English

    I 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

Actions