Code: Select all
Per-archive contributions to ELF file:
Archive File DRAM .data & 0.bss .ext_ram.bss .rtc_noinit .rtc.text .noinit IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata & .rodata_noload & .appdesc flash_total
libbt.a 4774 0 51347 0 0 0 1658 0 57779 503966 139630 0 0 650028
libmain.a 2805 5881 0 1 0 1024 18193 0 27904 95248 85160 0 0 202431
So I tried to mimic the linker fragment found in idf, for another component, but it didn't seem to work...
CMakeLists.txt (in the main folder)
Code: Select all
idf_component_register(
SRCS
...
"main.c"
INCLUDE_DIRS
"include"
"ulp/include"
"."
LDFRAGMENTS "app.lf"
)
And a Linker Fragment of:
Code: Select all
[scheme:default]
entries:
if ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY = y:
bss -> extern_ram
else:
bss -> dram0_bss
[mapping:main]
archive: libmain.a
entries:
* (bss);