in try to modify the internal_comunicacion with a Xsemaphore and dont compile

danylook
Posts: 7
Joined: Thu Aug 30, 2018 3:34 pm

in try to modify the internal_comunicacion with a Xsemaphore and dont compile

Postby danylook » Mon Oct 08, 2018 1:43 pm

i try to add the xsemaphore to the internal comuncation mesh sample and give me a missing library #include "freertos/queue.h" but is include in the "esp_event_loop.h".

the code
is_running = true;
while (is_running) {
if (xMutex!= NULL)
{
if (xSemaphoreTake(xMutex, portMAX_DELAY) == pdTRUE)
{



the result of flash

virtualcow@virtualcow-desktop:~/esp/internal_communication$ make -j9 flash monitor
CC build/main/mesh_main.o
Python requirements from /home/virtualcow/esp/esp-idf/requirements.txt are satisfied.
AR build/main/libmain.a
LD build/internal_communication.elf
/home/virtualcow/esp/internal_communication/build/main/libmain.a(mesh_main.o):(.literal.esp_mesh_p2p_tx_main+0x44): undefined reference to `xQueueAltGenericSend'
/home/virtualcow/esp/internal_communication/build/main/libmain.a(mesh_main.o): In function `esp_mesh_p2p_tx_main':
/home/virtualcow/esp/internal_communication/main/mesh_main.c:122: undefined reference to `xQueueAltGenericSend'
collect2: error: ld returned 1 exit status
/home/virtualcow/esp/esp-idf/make/project.mk:411: recipe for target '/home/virtualcow/esp/internal_communication/build/internal_communication.elf' failed
make: *** [/home/virtualcow/esp/internal_communication/build/internal_communication.elf] Error 1


thanks in advance

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

Re: in try to modify the internal_comunicacion with a Xsemaphore and dont compile

Postby ESP_Sprite » Wed Oct 10, 2018 2:34 am

Not sure what's going on there... the call you see is for an alternate queue API, which we don't support in ESP-IDF and should always be disabled.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: in try to modify the internal_comunicacion with a Xsemaphore and dont compile

Postby ESP_Angus » Wed Oct 10, 2018 7:37 am

Hi danylook,

Can you please post the full contents of the modified .c file?

Please upload it to a service like https://pastebin.com and then post the URL on the forum.

Angus

Who is online

Users browsing this forum: Majestic-12 [Bot] and 85 guests