Current Lua downloadable firmware will be posted here

User avatar
By Warthog
#5955 I have a problem when compiling nodemcu-firmware on Ubuntu linux:

I have installed toolchain in /opt/Espressif and made the symlinks to xt-xcc etc and get the following error:
Code: Select allmake[1]: Entering directory '/opt/Espressif/nodemcu-firmware/app/user'
DEPEND: xt-xcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -I include -I ./ -I ../../include/ets -I ../libc -I ../platform -I ../lua -I ../wofs -I ../include -I ./ -I ../../include -I ../../include/eagle user_main.c
In file included from ../libc/c_string.h:10:0,
                 from user_main.c:13:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.


After adding /opt/Espressif/ESP8266_SDK/include to the Makefile:
INCLUDES := $(INCLUDES) -I $(PDIR)include -I $(PDIR)include/$(TARGET) -I /opt/Espressif/ESP8266_SDK/include
there is another error:
Code: Select allmake[1]: Entering directory '/opt/Espressif/nodemcu-firmware/app'
make[2]: Entering directory '/opt/Espressif/nodemcu-firmware/app/user'
DEPEND: xt-xcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -I include -I ./ -I ../../include/ets -I ../libc -I ../platform -I ../lua -I ../wofs -I ../include -I ./ -I ../../include -I ../../include/eagle -I /opt/Espressif/ESP8266_SDK/include user_main.c
In file included from /opt/Espressif/ESP8266_SDK/include/fcntl.h:1:0,
                 from ../libc/c_fcntl.h:4,
                 from ../wofs/romfs.h:7,
                 from user_main.c:17:
/opt/Espressif/ESP8266_SDK/include/sys/fcntl.h:31:34: fatal error: xtensa/simcall-fcntl.h: No such file or directory
 #include <xtensa/simcall-fcntl.h>
                                  ^
compilation terminated.


the file simcall-fcntl.h is not found.
User avatar
By zeroday
#5964
Warthog wrote:I have a problem when compiling nodemcu-firmware on Ubuntu linux:

I have installed toolchain in /opt/Espressif and made the symlinks to xt-xcc etc and get the following error:
Code: Select allmake[1]: Entering directory '/opt/Espressif/nodemcu-firmware/app/user'
DEPEND: xt-xcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -I include -I ./ -I ../../include/ets -I ../libc -I ../platform -I ../lua -I ../wofs -I ../include -I ./ -I ../../include -I ../../include/eagle user_main.c
In file included from ../libc/c_string.h:10:0,
                 from user_main.c:13:
../../include/osapi.h:8:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.


After adding /opt/Espressif/ESP8266_SDK/include to the Makefile:
INCLUDES := $(INCLUDES) -I $(PDIR)include -I $(PDIR)include/$(TARGET) -I /opt/Espressif/ESP8266_SDK/include
there is another error:
Code: Select allmake[1]: Entering directory '/opt/Espressif/nodemcu-firmware/app'
make[2]: Entering directory '/opt/Espressif/nodemcu-firmware/app/user'
DEPEND: xt-xcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -I include -I ./ -I ../../include/ets -I ../libc -I ../platform -I ../lua -I ../wofs -I ../include -I ./ -I ../../include -I ../../include/eagle -I /opt/Espressif/ESP8266_SDK/include user_main.c
In file included from /opt/Espressif/ESP8266_SDK/include/fcntl.h:1:0,
                 from ../libc/c_fcntl.h:4,
                 from ../wofs/romfs.h:7,
                 from user_main.c:17:
/opt/Espressif/ESP8266_SDK/include/sys/fcntl.h:31:34: fatal error: xtensa/simcall-fcntl.h: No such file or directory
 #include <xtensa/simcall-fcntl.h>
                                  ^
compilation terminated.


the file simcall-fcntl.h is not found.


the missing file can be found here:
https://github.com/espressif/esp_iot_rtos_sdk/tree/master/extra_include/xtensa
User avatar
By Warthog
#5967 Ok, now the compiling starts, but after a while a new error occurs:

Code: Select allxt-xcc -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals  -D__ets__ -DICACHE_FLASH -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP   -I include -I ./ -I ../wofs -I ../spiffs -I ../libc -I ../modules -I ../platform -I ../include -I ./ -I ../../include -I ../../include/eagle -I /opt/Espressif/ESP8266_SDK/include  -o .output/eagle/debug/obj/ldo.o -c ldo.c
In file included from /opt/Espressif/ESP8266_SDK/include/setjmp.h:10:0,
                 from ldo.c:8:
/opt/Espressif/ESP8266_SDK/include/machine/setjmp.h:209:5: error: "__XTENSA_WINDOWED_ABI__" is not defined [-Werror=undef]
 #if __XTENSA_WINDOWED_ABI__
     ^
cc1: all warnings being treated as errors
../../Makefile:119: recipe for target '.output/eagle/debug/obj/ldo.o' failed
make[2]: *** [.output/eagle/debug/obj/ldo.o] Error 1
make[2]: Leaving directory '/opt/Espressif/nodemcu-firmware/app/lua'


Even in the rtos package __XTENSA_WINDOWED_ABI__ is not defined.
User avatar
By Hans174
#5970 Hello zeroday,

I have two question about your new firmware version (20141230).
How does the "tmr.time() api" work? Especially the calibration part.
How much RAM is available for LUA programs?

Hans