{"action":"closed","issue":{"url":"https://api.github.com/repos/espressif/ESP8266_RTOS_SDK/issues/133","repository_url":"https://api.github.com/repos/espressif/ESP8266_RTOS_SDK","labels_url":"https://api.github.com/repos/espressif/ESP8266_RTOS_SDK/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/espressif/ESP8266_RTOS_SDK/issues/133/comments","events_url":"https://api.github.com/repos/espressif/ESP8266_RTOS_SDK/issues/133/events","html_url":"https://github.com/espressif/ESP8266_RTOS_SDK/issues/133","id":278207233,"node_id":"MDU6SXNzdWUyNzgyMDcyMzM=","number":133,"title":"[SDK8266-80] RTOS_SDK_1.5 espconn error","user":{"login":"ukrsms","id":16973468,"node_id":"MDQ6VXNlcjE2OTczNDY4","avatar_url":"https://avatars3.githubusercontent.com/u/16973468?v=4","gravatar_id":"","url":"https://api.github.com/users/ukrsms","html_url":"https://github.com/ukrsms","followers_url":"https://api.github.com/users/ukrsms/followers","following_url":"https://api.github.com/users/ukrsms/following{/other_user}","gists_url":"https://api.github.com/users/ukrsms/gists{/gist_id}","starred_url":"https://api.github.com/users/ukrsms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ukrsms/subscriptions","organizations_url":"https://api.github.com/users/ukrsms/orgs","repos_url":"https://api.github.com/users/ukrsms/repos","events_url":"https://api.github.com/users/ukrsms/events{/privacy}","received_events_url":"https://api.github.com/users/ukrsms/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-30T17:35:20Z","updated_at":"2018-10-29T12:29:22Z","closed_at":"2018-10-29T12:29:22Z","author_association":"NONE","body":"Till now I used SDK v 1.3 but I decided to switch to 1.5 (current version) RTOS 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:\r\n\r\n```\r\nc:/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\r\nc:/Espressif/ESP8266_RTOS_SDK/lib\\libespconn.a(espconn_buf.o):(.text.ringbuf_memset+0xc): undefined reference to `os_memset'\r\nc:/Espressif/ESP8266_RTOS_SDK/lib\\libespconn.a(espconn_buf.o): In function `ringbuf_memset':\r\n(.text.ringbuf_memset+0x6a): undefined reference to `os_memset'\r\ncollect2.exe: error: ld returned 1 exit status\r\n```\r\nI tried to find the os_memset function but it seems it is absent in the SDK.\r\nI've studied the issue more deeply and found that the problem is connected with espconn lib.\r\nIf 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.\r\n\r\nFor example, I've tested the issue on a simple code but with the same errors:\r\n```\r\n#include \"esp_common.h\"\r\nvoid upgrade_recon_cb(void *arg, sint8 errType)\r\n{\r\n   printf(\"Connection error: \");\r\n}\r\nvoid user_init(void)\r\n{\r\n   struct espconn *conn;\r\n   espconn_regist_reconcb(conn, upgrade_recon_cb);\r\n}\r\nvoid user_rf_cal_sector_set(void)\r\n{\r\n}\r\n```\r\nI tried other espconn functions instead of espconn_regist_reconcb but the result was the same.\r\nI'm confused with the issue because it is hard to believe that such an error is there in new SDK \r\nDoes anybody use RTOS_SDK_1.5 ?"}}
{"actor":{"display_login":"FayeY"}}