-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined reference to `wifi_set_raw_recv_cb'- In function myTimer #6
Comments
We may release more information about this eventually. It right now only works with 1.5.4. I am hoping Espressif builds this functionality into their SDK. |
@cnlohr Thanks, /home/karol/git/esp8266/esp-open-sdk/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.5/../../../../xtensa-lx106-elf/bin/ld: image.elf section.irom0.text' will not fit in region irom0_0_seg' /home/karol/git/esp8266/esp-open-sdk/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.5/../../../../xtensa-lx106-elf/bin/ld: regionirom0_0_seg' overflowed by 6576 bytes` what should i do... |
That is far far larger than I would expect. Good news, though! After this weekend, I will probably be able to release something that will make this compatible with 2.0. We'll have to see though. If so, will happen this weekend or early next week. |
@sarwadenj Try it now, see #7 - you will probably need the SDK provided in that thread. |
@cnlohr while using "REDUCED_ESP8266_NONOS_SDK_2.0.0_20160810_with_angus_patch.zip" esp8266@esp8266-VirtualBox:~/ESP8266_NONOS_SDK$ make Also i'm looking at your whole code. You called void PreEmpt_NMI_Vector(); function in user_main.c and it is defined IN #define NMI_OVERRIDE but you commented NMI_OVERRIDE define part.. |
No NMI_OVERRIDE is needed that I remember since in this SDK the user interrupt is what handles wifi (I think). You don't build the esp nonSDK. Unzip it to ~/esp8266/ESP8266_NONOS_SDK. |
@cnlohr Sorry i didn't get your point..i taken ESP8266 NONOS SDK V2.0.0 20160810 from https://espressif.com/en/support/download/sdks-demos. Thanks. |
The way the folders are currently set up, it's assuming the #7 "with angus patch" is what is in ~/esp8266/ESP8266_NONOS_SDK - this will require overwriting of all those files. Though the new SDK is compatible with everything as far as I know. |
Hi @cnlohr , |
esp open sdk. All the way. https://github.com/pfalcon/esp-open-sdk The included .zip is just the ESP NONOS SDK. |
esp8266@esp8266-VirtualBox:~/vishal/esp82XX-basic$ make burn
/home/esp8266/vishal/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -mlongcalls -Os -I/home/esp8266/vishal/esp-open-sdk/sdk/include -Iesp82xx/include -I. -Iesp82xx/fwsrc -Iuser -DICACHE_FLASH -DWEB_PORT=80 -DCOM_PORT=7777 -DBACKEND_PORT=7878 -DSLOWTICK_MS=50 -DVERSSTR='"Version: v0.1-7-g06742-dev - Build 2017年 01月 03日 星期二 02:49:57 CST with -DICACHE_FLASH -DWEB_PORT=80 -DCOM_PORT=7777 -DBACKEND_PORT=7878 -DSLOWTICK_MS=50"' esp82xx/fwsrc/uart.c esp82xx/fwsrc/esp82xxutil.c esp82xx/fwsrc/flash_rewriter.c esp82xx/fwsrc/http.c esp82xx/fwsrc/commonservices.c esp82xx/fwsrc/http_custom.c esp82xx/fwsrc/mdns.c esp82xx/fwsrc/mfs.c user/custom_commands.c user/user_main.c -flto -Wl,--relax -Wl,--gc-sections -nostdlib -L/home/esp8266/vishal/esp-open-sdk/sdk/lib -L/home/esp8266/vishal/esp-open-sdk/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.5/libgcc.a /home/esp8266/vishal/esp-open-sdk/sdk/lib/libmain.a /home/esp8266/vishal/esp-open-sdk/sdk/lib/liblwip.a /home/esp8266/vishal/esp-open-sdk/sdk/lib/libssl.a /home/esp8266/vishal/esp-open-sdk/sdk/lib/libupgrade.a /home/esp8266/vishal/esp-open-sdk/sdk/lib/libnet80211.a /home/esp8266/vishal/esp-open-sdk/sdk/lib/libwpa.a /home/esp8266/vishal/esp-open-sdk/sdk/lib/libphy.a /home/esp8266/vishal/esp-open-sdk/sdk/lib/liblwip.a /home/esp8266/vishal/esp-open-sdk/sdk/lib/libcrypto.a /home/esp8266/vishal/esp-open-sdk/sdk/lib/libpp.a /home/esp8266/vishal/esp-open-sdk/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.5/libgcc.a -T /home/esp8266/vishal/esp-open-sdk/sdk/ld/eagle.app.v6.ld -B/home/esp8266/vishal/esp-open-sdk/sdk/lib -o image.elf
/tmp/cctpsX1W.ltrans1.ltrans.o:(.irom0.literal+0x34): undefined reference to
wifi_set_raw_recv_cb' /tmp/cctpsX1W.ltrans1.ltrans.o: In function
myTimer$2546'::(.irom0.text+0x45): undefined reference to `wifi_set_raw_recv_cb'
collect2: error: ld returned 1 exit status
make: *** [image.elf] Error 1
wifi_set_raw_recv_cb( rx_func ); //function call
void attribute ((noinline)) rx_func( struct RxPacket * r, void ** v ) //defination
The text was updated successfully, but these errors were encountered: