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
in try to modify the internal_comunicacion with a Xsemaphore and dont compile
-
- Posts: 9709
- Joined: Thu Nov 26, 2015 4:08 am
Re: in try to modify the internal_comunicacion with a Xsemaphore and dont compile
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
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
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: MicroController and 245 guests