Can't use RTOS SDK 1.4 or 1.5. Kindly Guide

solomonC
Posts: 3
Joined: Fri Dec 02, 2016 10:42 pm

Can't use RTOS SDK 1.4 or 1.5. Kindly Guide

Postby solomonC » Fri Dec 02, 2016 10:53 pm

I have been using NONOS SDK up till now. Now I am trying to use RTOS SDK and the program throws an error in the linker stage:
/Users/SSGhumman/Files/esp_dev/espressif/RTOS_1.4/lib/libmain.a(misc.o):(.irom0.text+0x4): undefined reference to `xthal_get_ccount'

I have put just one error here but there are about 5-6 and all mention xthal in some way.
There is no libhal.a in the newer RTOS SDK's so hal isn't there in my makefile either. What is causing this problem?
Also If someone can tell me, am I supposed to compile against all the libraries always? Because if I try to choose some libraries, the libraries are so interdependent that it always throws an error and I end up including all libs.a. Would appreciate any help.

User avatar
pratik
Posts: 467
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: Can't use RTOS SDK 1.4 or 1.5. Kindly Guide

Postby pratik » Sun Dec 04, 2016 8:37 pm

Are you able to build an example application from RTOS SDK examples? Please try that just to confirm that all dependencies are set and your SDK path is properly set as well.
Also, are you able to build your program with all libs added?
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

solomonC
Posts: 3
Joined: Fri Dec 02, 2016 10:42 pm

Re: Can't use RTOS SDK 1.4 or 1.5. Kindly Guide

Postby solomonC » Sun Dec 04, 2016 10:04 pm

I tried to build 'project_template' example with the given makefile. It fails with:
-elf/bin/ld: cannot find -lhal


Has no tried RTOS 1.4 or 1.5 yet!!! :o
I find this very bizzare :?

But hold on! If I remove this library from makefile it seems to build further. Now I have many eagle.app.v6... files. It does fail at building eagle.flash.bin but maybe it's just copying that one from ld directly and I can flash this one myself?
What's the role of eagle.flash.bin? Is it the one copied at the end of the flash?

Who is online

Users browsing this forum: dollyno69 and 15 guests