• Thanks @Wilberforce, that worked. I can now use the save() and on reboot everything work fine.

    To be clear on the process, this is my modified python script:

    import os;
    import pinutils;
    info = {
     'name'            : "ESP8266",
     'espruino_page_link' : 'EspruinoESP8266',
     'default_console' : "EV_SERIAL1",
     'default_console_baudrate' : "115200",
     'variables'       : 1600,
     'binary_name'     : 'espruino_%v_esp8266_4mb',
     'build' : {
       'libraries' : [
         'NET',
         'TELNET',
         #'GRAPHICS',
         'CRYPTO',
         'NEOPIXEL',
         'FILESYSTEM',
         'FLASHFS'
       ],
       'makefile' : [
         'FLASH_4MB=1',
         'ESP_FLASH_MAX=962560',
         'FLASH_BAUD=460800'
        ]
     }
    ...
    

    This is my compile.sh

     #!/bin/bash
    export FAMILY=ESP8266
    export BOARD=ESP8266_4MB
    export FLASH_4MB=1
    export ESP8266_SDK_ROOT=/espruino/ESP8266_NONOS­_SDK-1.5.4
    export PATH=$PATH:/espruino/esp-open-sdk/xtensa­-lx106-elf/bin/
    export COMPORT=/dev/ttyS2
    export USE_ESP8266=1
    export RELEASE=1
    make clean && make $*
    

    And this is my flashing command using 1024/1024:

    esptool.py --port COM8 --baud 115200 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
    

    There is only one question remaining, I've added the RELEASE=1 again to compress a little bit more the binary, and upon restarting if I'm connected do espruino IDE I get the following output

    >s$l<dà|lä#|ìÛsbcÄò'oß$g'ãäcpìÇdsdsdxóoàd[#g](http://forum.espruino.com/search/?q­=%23g)ã|#Äónoï$l Ø'o$`g{ol`pò'à{Üâàcoã|ìcûo'çl Ø'o$`gso$pò'à{Üâàälcoã|cûo'çl Ø'o$`gsol`rÛgl`{loû'oã{no'Äd#$älìl$l~;lìddlgâ$$l$äloàÇgä'dlàÀcäÄllxccx#{cpÄcc$lo'Äãgd|$l`{lãäoì;ûg|ìll`ã;ddþLoading 3627 bytes from flash...
    Running onInit()...
    

    If I open a PuTTY session, with a baud rate of 75600, I can read the printed message:

     ets Jan  8 2013,rst cause:2, boot mode:(3,7)
    
    load 0x40100000, len 2408, room 16
    tail 8
    chksum 0xe5
    load 0x3ffe8000, len 776, room 0
    tail 8
    chksum 0x84
    load 0x3ffe8310, len 632, room 0
    tail 8
    chksum 0xd8
    csum 0xd8
    
    2nd boot version : 1.6
      SPI Speed      : 80MHz
      SPI Mode       : QIO
      SPI Flash Size & Map: 32Mbit(1024KB+1024KB)
    jump to run user1 @ 1000
    
    rf cal sector: 128
    

    Is there any way to remove that from startup?

    Thanks again.

About

Avatar for FStech @FStech started