Closed Kampi closed 8 months ago
Filesystem uses LittleFS. Are you using the FS in your code? Have you added LittleFS as component? It is NOT not included in esp-idf by default.
Probably not a PlatformIO issue, see https://github.com/espressif/esp-idf/issues/10427
Filesystem uses LittleFS. Are you using the FS in your code? Have you added LittleFS as component? It is NOT not included in esp-idf by default.
Hi,
I have removed the board_build.filesystem = littlefs
directive, but the issue stays. I check the solution from @valeros
Hi,
the solution from @valeros work. I add
/main/ESP32-S3_Fix.lf
# This fixes an ESP-IDF 4.4.4/5.0.1 linker issue on incremental builds
# "undefined reference to '_bt_bss_start'" for Bluetooth component library function 'esp_bt_mem_release'
# References:
# https://github.com/espressif/esp-idf/issues/10427
# https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/linker-script-generation.html
[sections:bt_bss_fix]
entries:
.bss+
[scheme:bt_extram_bss_fix]
entries:
bt_bss_fix -> extern_ram
[mapping:bt_fix]
archive: libbt.a
entries:
if ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY = y:
* (extram_bss)
and
/main/CMakeLists.txt
if(IDF_TARGET STREQUAL "esp32s3")
idf_component_register(SRCS ${app_sources}
REQUIRES json
LDFRAGMENTS "ESP32-S3_Fix.lf")
else()
idf_component_register(SRCS ${app_sources}
REQUIRES json
)
endif()
to my project and the issue is gone.
I have to correct my answer. The issue is still present.
@Kampi Could you please try compiling the same project using the native IDF build tools?
Hi,
it´s not that easy by using windows. That´s the reason for using PIO. I try to get it runnable in docker.
Tried CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=n
?
@Kampi have you tried my original solution? It's not quite the same as the one you posted here but works for me in ESP-IDF 4.4.4 and 4.4.5 (still present).
https://github.com/espressif/esp-idf/issues/10427#issuecomment-1470068645
This issue is only seen with incremental builds (IE not built from clean)
This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.
I´m compiling firmware for an ESP32-S3 by using the following configuration:
And the following tools:
I receive the following linking error randomly at the end of the build process:
The code compiles successfully for an ESP32 and sometimes also successfully for an ESP32-S3.