You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thank you so much for the code. I need a little bit of your help now.
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
`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
The text was updated successfully, but these errors were encountered:
First of all thank you so much for the code. I need a little bit of your help now.
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
`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
The text was updated successfully, but these errors were encountered: