idf.py size: no symbol for libfreertos.a reference
Posted: Mon Dec 16, 2024 8:46 am
Hi everyone,
I am using ESP IDF 5.3.1 on Windows through the VS Code extension to build ESP32C3/C6 firmware. I have the following issue running idf.py size after building my project:
Then the idf.py size JSON output is shown, both in Output -> ESP IDF (bare JSON) and in Terminal -> ESP IDF Size terminal (formatted table) but the graphical view of the size is missing. I understand that the extension stops the GUI size representation due to the error.
Running
in a ESP IDF terminal to rebuild the library, and searching for the missing symbol portasm.S.obj shows
So perhaps there is a stale symbol here causing idf.py size to fail. How could I further debug/fix this?
The rest of the features seem to work as expected. I noticed the problem after updating from ESP IDF 5.3 to 5.3.1 and reproduced it in a hello world project. idf.py size-components does not show the GUI size information either.
I am using ESP IDF 5.3.1 on Windows through the VS Code extension to build ESP32C3/C6 firmware. I have the following issue running idf.py size after building my project:
Code: Select all
error: no symbol for "$esp-idf/freertos/libfreertos.a(portasm.S.obj)" reference in the cross reference table
Running
Code: Select all
xtensa-esp32-elf-nm -n build/esp-idf/freertos/libfreertos.a > log.txt
Code: Select all
portasm.S.obj:
U
U esp_hw_stack_guard_monitor_start
U esp_hw_stack_guard_monitor_stop
U esp_hw_stack_guard_set_bounds
U port_uxInterruptNesting
U port_xSchedulerRunning
U pxCurrentTCBs
U vTaskSwitchContext
U xIsrStackBottom
U xIsrStackTop
U xPortSwitchFlag
The rest of the features seem to work as expected. I noticed the problem after updating from ESP IDF 5.3 to 5.3.1 and reproduced it in a hello world project. idf.py size-components does not show the GUI size information either.