• Hello, I'm fairly new to Espruino and recently bought a NodeMCUv3(esp8266). I've downloaded the latest releases and tested a few codes. I was developing a simple web server that would serve an html/css/js page, and the plan was to store them on an SD card.

    The problem is that ESP8266 doesn't have FS by default, so I've set to build my own firmware with fs enabled. While I can build and get all my binaries, if i ever type save() on the web IDE and hard reset the board, it prints like crazy "fatal exception(3)"

    Here are my codes:

    compile.sh

     #!/bin/bash
    export FAMILY=ESP8266
    export BOARD=ESP8266_BOARD
    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_FILESYSTEM=1
    export USE_NET=1
    export USE_ESP8266=1
    export DEBUG=1
    make clean && make $*
    

    flashing command:

    esptool.py --port COM8 --baud 115200 write_flash --flash_freq 80m --flash_mode qio --flash_size 4MB 0x0000 boot_v1.6.bin 0x1000 espruino_esp8266_user1.bin 0x3FC000 esp_init_data_default.bin 0x3FE000 blank.bin
    

    I am running ubuntu on windows for compiling, and had to modify the ESP8266_NONOS_SDK c_types.h lines:

    //typedef unsigned long       uint32_t;
    typedef unsigned int       uint32_t;
    //typedef signed long         int32_t;
    typedef signed int         int32_t;
    

    Beyond that, I couldn't find how to not use a certain module, for example neopixel, which made me modify the c_types.h

    I'm also uploading my binaries if anyone wants to test them

    Any help on this matter is greatly appreciated.

    Thanks!


    1 Attachment

About

Avatar for FStech @FStech started