FOTA + Eclipse + Windows
Posted: Sat Mar 26, 2016 9:33 am
I am trying to build a project which i got from GITHUB repository https://github.com/nqd/esp8266-dev
I am trying to run the ota-update program from the examples folder in his repository. I posed the same issue on github but it looks like no-one is active over their.
I am using Eclipse IDE (Mars) with windows to develop my project. I have included all the necessary files required for your project and made all the necessary change in makefile, user_main.c and user_config.h (otaupdate project). But I am getting this error when trying to build the project
I tried with SDK version 1.5 and 1.3 but i get the same error every time.
I use the same header file in my other projects "osapi.h" and it works fine.
I don't know where the problem exists. Any help would be appreciated
I am trying to run the ota-update program from the examples folder in his repository. I posed the same issue on github but it looks like no-one is active over their.
I am using Eclipse IDE (Mars) with windows to develop my project. I have included all the necessary files required for your project and made all the necessary change in makefile, user_main.c and user_config.h (otaupdate project). But I am getting this error when trying to build the project
Code: Select all
mingw32-make.exe -f C:/Users/Ashutosh/workspace/ota/Makefile all
CC -c ./user/user_main.c -o .objs/user_main.o
In file included from ./user/user_main.c:12:0:
./user/user_main.c: In function 'connect_status_check':
c:/Espressif/ESP8266_SDK_130/include/osapi.h:42:19: error: implicit declaration of function 'os_printf_plus' [-Werror=implicit-function-declaration]
#define os_printf os_printf_plus
^
./user/user_main.c:34:5: note: in expansion of macro 'os_printf'
os_printf("Got IP, start update\n");
^
c:/Espressif/ESP8266_SDK_130/include/osapi.h:31:25: error: implicit declaration of function 'ets_timer_disarm' [-Werror=implicit-function-declaration]
#define os_timer_disarm ets_timer_disarm
^
./user/user_main.c:39:5: note: in expansion of macro 'os_timer_disarm'
os_timer_disarm(&connect_check_timer);
^
c:/Espressif/ESP8266_SDK_130/include/osapi.h:32:24: error: implicit declaration of function 'ets_timer_setfn' [-Werror=implicit-function-declaration]
#define os_timer_setfn ets_timer_setfn
^
./user/user_main.c:40:5: note: in expansion of macro 'os_timer_setfn'
os_timer_setfn(&connect_check_timer, (os_timer_func_t )connect_status_check, NULL);
^
c:/Espressif/ESP8266_SDK_130/include/osapi.h:30:31: error: implicit declaration of function 'ets_timer_arm_new' [-Werror=implicit-function-declaration]
#define os_timer_arm(a, b, c) ets_timer_arm_new(a, b, c, 1)
^
./user/user_main.c:41:5: note: in expansion of macro 'os_timer_arm'
os_timer_arm(&connect_check_timer, 5000, 0);
^
./user/user_main.c: In function 'user_init':
c:/Espressif/ESP8266_SDK_130/include/osapi.h:12:21: error: implicit declaration of function 'ets_delay_us' [-Werror=implicit-function-declaration]
#define os_delay_us ets_delay_us
^
./user/user_main.c:54:3: note: in expansion of macro 'os_delay_us'
os_delay_us(1000000);
^
./user/user_main.c:58:3: error: implicit declaration of function 'uart0_tx_buffer' [-Werror=implicit-function-declaration]
uart0_tx_buffer("\n", os_strlen("\n"));
^
In file included from ./user/user_main.c:12:0:
c:/Espressif/ESP8266_SDK_130/include/osapi.h:23:19: error: implicit declaration of function 'ets_strlen' [-Werror=implicit-function-declaration]
#define os_strlen ets_strlen
^
./user/user_main.c:58:25: note: in expansion of macro 'os_strlen'
uart0_tx_buffer("\n", os_strlen("\n"));
^
c:/Espressif/ESP8266_SDK_130/include/osapi.h:16:19: error: implicit declaration of function 'ets_memcpy' [-Werror=implicit-function-declaration]
#define os_memcpy ets_memcpy
^
./user/user_main.c:72:3: note: in expansion of macro 'os_memcpy'
os_memcpy(&stationConf.ssid, ssid, 32);
^
cc1.exe: all warnings being treated as errors
mingw32-make.exe: ** [.objs/user_main.o] Error 1
C:/Users/Ashutosh/workspace/ota/Makefile:258: recipe for target '.objs/user_main.o' failed
14:28:57 Build Finished (took 5s.326ms)
I tried with SDK version 1.5 and 1.3 but i get the same error every time.
I use the same header file in my other projects "osapi.h" and it works fine.
I don't know where the problem exists. Any help would be appreciated