Missing file related modules/functions

Posted on
  • I'm using nodeMCU v2 ESP-12 and try to save some config file to flash storage using file references.

    I've tried using

    E.openFile
    

    but the function it self return undefined, then I try using fs module

    require("fs")
    

    it return a Warning: Module "fs" not found, same does as

    require("FlashStoreWrite")
    

    return Warning: Module "FlashStoreWrite" not found. Right now I'm out of option on saving my node configuration.

    I'm flashing my ESP using firmware 1v89 and use following command line on esptool

    esptool.py --port [/dev/ttyUSB0|COM1] --baud 115200 write_flash \
      --flash_freq 80m --flash_mode qio --flash_size 32m \
      0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin \
      0x3FC000 esp_init_data_default.bin 0x37E000 blank.bin
    

    Did I missing something on flashing my ESP that cause me doesn't have File modules on device?


    1 Attachment

    • espruino_error.png
  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Missing file related modules/functions

Posted by Avatar for ariston @ariston

Actions