• Here's what happened for my newly flashed ESP32S

    >require("Wifi").getStatus()
    ={ 
      station: "Unknown reason", 
      mode: "AP", 
      powersave: "modem"
     }
    >require("Wifi").save("sta+ap");
    =undefined
    >require("Wifi").getStatus()
    ={ 
      station: "Unknown reason", 
      mode: "AP", 
      powersave: "modem"
     }
    >E.reboot()
    ets Jun  8 2016 00:22:57
    
    rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:2
    load:0x3fff0018,len:4
    load:0x3fff001c,len:2668
    load:0x40078000,len:7304
    load:0x40080000,len:5312
    entry 0x40080274
    E (536) spiram: SPI RAM enabled but initialization failed. Bailing out.
    
     ____                 _ 
    |  __|___ ___ ___ _ _|_|___ ___ 
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v04.3 (c) 2019 G.Williams
    
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    
    WARNING: jswrap_wifi_restore: AP=ESP_4CA4D5
    >require("Wifi").getStatus()
    ={ 
      station: "Unknown reason", 
      mode: "AP", 
      powersave: "modem"
     }
    >process.env
    ={ 
      VERSION: "2v04.3", 
      GIT_COMMIT: "83fba1f3", 
      BOARD: "ESP32", 
      FLASH: 0, RAM: 524288, 
      SERIAL: "3c71bf4c-a4d4", 
      CONSOLE: "Serial1", 
      MODULES: "Flash,Storage,hea" ... "lnetServer,crypto", 
      EXPTR: 1073484860 }
    >
    

    so how to make my ESP32S to support "sta+ap" ?
    This MCU can run both mode when I script it in Arduino, but when I script it in Espruino, it will automatically disconnect station wifi when it has Access point on.

    also, how to fix "E (536) spiram: SPI RAM enabled but initialization failed. Bailing out." ?

    thanks for reading

About

Avatar for Unreality @Unreality started