Page 1 of 1

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

Posted: Mon Oct 08, 2018 1:43 pm
by danylook
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

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

Posted: Wed Oct 10, 2018 2:34 am
by ESP_Sprite
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.

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

Posted: Wed Oct 10, 2018 7:37 am
by ESP_Angus
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