undefined reference to `free' mesh-v1.3.2

0xfa1c0
Posts: 7
Joined: Sat Dec 10, 2016 11:48 pm

undefined reference to `free' mesh-v1.3.2

Postby 0xfa1c0 » Sat Dec 10, 2016 11:54 pm

Hi all, I have a problem with the linker, as the title suggest it cannot find the free function.

I've downloaded the mesh v1.3.2 version, here there are my included libs:

Code: Select all

LIBS   = c gcc hal phy pp net80211 lwip wpa main crypto driver mesh wps smartconfig


I have also added -DESP_MESH_SUPPORT flag.

Anyone with this problem?

pratik

Re: undefined reference to `free' mesh-v1.3.2

Postby pratik » Sun Dec 11, 2016 1:28 pm

Hi!
It should work with lwip included?

Did you include the header file needed?
• include/espressif/mesh.h?

How about this document to help?
http://www.espressif.com/sites/default/ ... 160203.pdf

0xfa1c0
Posts: 7
Joined: Sat Dec 10, 2016 11:48 pm

Re: undefined reference to `free' mesh-v1.3.2

Postby 0xfa1c0 » Sun Dec 11, 2016 7:39 pm

Now It's ok, when I use os_free instead of free, adding <mem.h> header it compile well, thanks for the reply.

The problem that I'm facing now is that the image won't run, I have flashed esp_init_data_default.bin, boot_v1.4(b1).bin, blank.bin with flash download tool.

Image

Then I have build an image and I've used esptool:

Code: Select all

esptool.exe -p COM3 -b 256000 write_flash -ff 40m -fm qio -fs 32m 0x00000 firmware/eagle.flash.bin 0x10000 firmware/eagle.irom0text.bin


but I get:

Code: Select all

Fatal exception (0):
epc1=0x40240a2b, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000



With Non-os SDK 2.0 I have no problem running the application, but if I have understood well the mesh api aren't updated with non-os.

Who is online

Users browsing this forum: No registered users and 56 guests