Chat freely about anything...

User avatar
By peteben
#5264 Has anyone managed to get anything to compile with this SDK?

I have tried it both under Windows and in the VM.
First, there are tons of undefined calls to ets_memcmp and the like. Those are in the ROM, but are not listed in the eagle.rom.addr.v6.ld linker script that comes in this SDK. If I instead use the one from the 0.93 SDK, then it works.
I was able to fix some other similar problems by using the libs from the 0.93 SDK.
The last problem I am facing seems to be the port.c file from the FreeRTOS source. The code, frankly, seems unfinished. There are printfs in there for debugging. The file includes "xtensa/tie/xt_interrupt.h", but that file is nowhere to be found. Also, there is a reference to function portBASE_TYPE MacIsrSigPostDefHdl(void), which again is missing. I have dumped symbols from every library, searched every source, no joy.

If anybody is able to compile with this SDK, can you tell me if you have the above??

Thanks,
Pete
User avatar
By alonewolfx2
#5266 i can compile with lubuntu virtual machine from espressif.
User avatar
By peteben
#5276 Ok, found the problem. The FreeRTOS SDK does not include the closed-source libraries libmain, libnet8011, lipphy, libpp and libwpa. The instructions stated to just grab those from the sdk. I grabbed them from the 0.93 SDK, but those were not the correct ones. Eventually I found the esp_iot_rtos_sdk_lib_master project on github that had the proper libraries. libpp had the missing functions.
Now I can compile in the VM.

Thanks,

Pete
User avatar
By OpenThings
#5671 I compile esp-freeRTOS SDK got error:
xt-xcc -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -I include -I ./ -I ../../include/ets -I ../include -I ./ -I ../../include -I ../../include/eagle -I ./ -I ../../include/lwip -I ../../include/lwip/ipv4 -I ../../include/lwip/ipv6 -I ../../include/espressif -o .output/eagle/debug/obj/user_main.o -c user_main.c
In file included from ../../include/freertos/portable.h:318:0,
from ../../include/freertos/FreeRTOS.h:87,
from user_main.c:13:
../../include/freertos/portmacro.h:75:33: fatal error: xtensa/xtruntime.h: No such file or directory
#include <xtensa/xtruntime.h>
^
compilation terminated.


but , where can find <xtensa/xtruntime.h>.
very strange: I am using lubuntu compile success.