• Hey, there is one great side effect here, that is the image size is soooo much smaller:

    -rw-r--r-- root/root 462244 2016-01-08 16:01 ./espruino_1v84.48_esp8266/espruino_esp8­266_user1.bin

    After a git pull with the linked mathlib:

    -rw-r--r-- 1 root root 437812 Mar 11 07:36 espruino_esp8266_user1.bin
    So I though there would be space for the graphics lib:

    root@esp8266-VirtualBox:/home/esp8266/Es­pruino# cat ./build-graphics.sh

     #! /bin/bash
    export ESP8266_BOARD=1
    export FLASH_4MB=1
    export USE_GRAPHICS=1
    export ESP8266_SDK_ROOT=/home/esp8266/Espruino/­esp_iot_sdk_v1.5.0
    export PATH=/home/esp8266/esp-open-sdk/xtensa-l­x106-elf/bin:$PATH
    export COMPORT=/dev/ttyUSB0
    make $*
    

    -rw-r--r-- 1 root root 454596 Mar 11 07:41 espruino_esp8266_user1.bin

    I've not yet tested this binary, however it looks really promising!
    @MaBe - not sure if we need to reduce the # of vars

    Add in USE_CRYPTO=1, the build fails due to:

    /home/esp8266/esp-open-sdk/xtensa-lx106-­elf/lib/gcc/xtensa-lx106-elf/4.8.2/../..­/../../xtensa-lx106-elf/bin/ld: address 0x3fffca00 of espruino_esp8266_user2.elf section `.bss' is not within region `dram0_0_seg'
    

    So I still need to try to reduce the size to get the SHA1 function for use in web sockets.

About

Avatar for Wilberforce @Wilberforce started