ESP8266 Developer Zone The Official ESP8266 Forum 2017-12-01T01:21:53+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=8372 2017-12-01T01:21:53+08:00 2017-12-01T01:21:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=8372&p=18487#p18487 <![CDATA[Re: RTOS SDK v. 1.5 compilation error]]> espconn lib.
If I do not use any espconn functions then project compiles without errors, but if there are some espconn functions in the code the mentioned error occurs.

For example, I've tested the issue on a simple code:

Code:

#include "esp_common.h"


void upgrade_recon_cb(void *arg, sint8 errType)
{
   printf("Connection error: ");
}

void user_init(void)
{
   struct espconn *conn;
   espconn_regist_reconcb(conn, upgrade_recon_cb);
}
void user_rf_cal_sector_set(void)
{
}

and compilation finished with the errors:

Code:

c:/Espressif/ESP8266_RTOS_SDK_1.5/lib\libespconn.a(espconn_buf.o):(.text.ringbuf_findchr+0x8): undefined reference to `memchr'
c:/Espressif/ESP8266_RTOS_SDK_1.5/lib\libespconn.a(espconn_buf.o): In function `ringbuf_findchr':
(.text.ringbuf_findchr+0x73): undefined reference to `memchr'
c:/Espressif/ESP8266_RTOS_SDK_1.5/lib\libespconn.a(espconn_buf.o):(.text.ringbuf_memset+0xc): undefined reference to `os_memset'
c:/Espressif/ESP8266_RTOS_SDK_1.5/lib\libespconn.a(espconn_buf.o): In function `ringbuf_memset':
(.text.ringbuf_memset+0x6a): undefined reference to `os_memset'
collect2.exe: error: ld returned 1 exit status
C:/Espressif/examples/esp_rtos_sdk_example_2/Makefile:198: recipe for target 'build/app.out' failed


P.S. I tried other espconn functions instead of espconn_regist_reconcb but the result was the same.
I'm confused with the issue because it is hard to believe that such an error is there in new SDK :?
Does anybody use RTOS_SDK_1.5 ?

Statistics: Posted by ukrsms — Fri Dec 01, 2017 1:21 am


]]>
2017-11-16T16:59:39+08:00 2017-11-16T16:59:39+08:00 https://bbs.espressif.com:443/viewtopic.php?t=8372&p=18194#p18194 <![CDATA[Re: RTOS SDK v. 1.5 compilation error]]> os_memset from within my code? I've checked, there is no call to the function, but I use memset in my code.
By the way, a compiler says it is called at libespconn.a(espconn_buf.o): In function `ringbuf_memset':

Statistics: Posted by ukrsms — Thu Nov 16, 2017 4:59 pm


]]>
2017-11-16T15:47:59+08:00 2017-11-16T15:47:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=8372&p=18191#p18191 <![CDATA[Re: RTOS SDK v. 1.5 compilation error]]> Statistics: Posted by Her Mary — Thu Nov 16, 2017 3:47 pm


]]>
2017-11-16T00:21:59+08:00 2017-11-16T00:21:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=8372&p=18178#p18178 <![CDATA[RTOS SDK v. 1.5 compilation error]]>
Till now I used SDK v 1.3 but today I decided to switch to 1.5 SDK. I downloaded SDK from here https://github.com/espressif/ESP8266_RTOS_SDK/tree/master and tried to compile it, but i got an error:

Code:

c:/Espressif/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -Lc:/Espressif/ESP8266_RTOS_SDK/lib -Lout/build -Trom0.ld -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group, out/build/app_app.a -lgcc -lhal -lphy -lpp -lmain -lssl -lnet80211 -lespconn -lwpa -lcrypto -lfreertos -lcirom -llwip -lminic -lpwm -lsmartconfig -Wl,--end-group -Wl,-Map,foo0.map -o out/build/app_0.out
c:/Espressif/ESP8266_RTOS_SDK/lib\libespconn.a(espconn_buf.o):(.text.ringbuf_memset+0xc): undefined reference to `os_memset'
c:/Espressif/ESP8266_RTOS_SDK/lib\libespconn.a(espconn_buf.o): In function `ringbuf_memset':
(.text.ringbuf_memset+0x6a): undefined reference to `os_memset'
collect2.exe: error: ld returned 1 exit status

I tried to find the os_memset function but it seems it is absent in the SDK.
I am puzzled with this because I believe that SKD could not be with an error inside. Could anyone say what could be wrong?

Statistics: Posted by ukrsms — Thu Nov 16, 2017 12:21 am


]]>