Passing the flash_mode to EspruinoTools in NodeJs

Posted on
  • Dear,
    I started with Espruino a couple of days ago, and I must admit it is a very fascinating technology!

    Hopefully this question is in the correct category...

    Via the python tool, it is possible to pass all kind of parameters:

    /path/to/esptool/esptool.py --port /dev/ttyUSB0 --baud 115200 \
      write_flash --flash_freq 80m --flash_mode qio --flash_size 32m 
    

    I was wondering if it is also possible to pass somehow these parameters (e.g. flash_mode) to the flash function of the EspruinoTools in NodeJs?

    Thought that this perhaps should be specified in the Espruino.Config, but I don't think that any of those parameters can be used for this:

    BAUD_RATE: 9600
    BLUETOOTH_LOW_ENERGY: false
    BOARD_JSON_URL: "http://www.espruino.com/json"
    COMPILATION: true
    COMPILATION_URL: "https://www.espruino.com/service/compilĀ­er"
    ENV_ON_CONNECT: true
    LOAD_STORAGE_FILE: 2
    MINIFICATION_LEVEL: ""
    MINIFICATION_Mangle: true
    MODULE_AS_FUNCTION: true
    MODULE_EXTENSIONS: ".min.js|.js"
    MODULE_MINIFICATION_LEVEL: "ESPRIMA"
    MODULE_PROXY_ENABLED: false
    MODULE_PROXY_PORT: ""
    MODULE_PROXY_URL: ""
    MODULE_URL: "https://www.espruino.com/modules"
    PRETOKENISE: false
    RESET_BEFORE_SEND: true
    SAVE_ON_SEND: 0
    SAVE_STORAGE_FILE: "myapp"
    SERIAL_AUDIO: "0"
    SERIAL_FLOW_CONTROL: true
    SERIAL_IGNORE: "/dev/ttyS*|/dev/*.SOC|/dev/*.MALS"
    SERIAL_THROTTLE_SEND: false
    SET_TIME_ON_WRITE: true
    STORE_LINE_NUMBERS: true
    WEB_BLUETOOTH: true
    WEB_SERIAL: true
    

    Hopefully somebody can give me the golden tip ;-)

    Thanks!!!
    Bart

  • Hi, I don't think EspruinoTools supports uploading new Espruino firmware to ESP32/ESP8266. The -f command is for uploading to STM32-based Official Espruino boards

  • @Gordon,
    Ok no problem. Thanks for your feedback!!
    Bart

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

Passing the flash_mode to EspruinoTools in NodeJs

Posted by Avatar for user141395 @user141395

Actions