Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion esp_sysview/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ if(CONFIG_ESP_TRACE_LIB_EXTERNAL)
endif()
endif()

configure_file(linker.lf.in ${CMAKE_CURRENT_BINARY_DIR}/linker.lf)

idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS "${include_dirs}"
REQUIRES esp_trace
LDFRAGMENTS linker.lf
LDFRAGMENTS ${CMAKE_CURRENT_BINARY_DIR}/linker.lf
WHOLE_ARCHIVE TRUE # Link all symbols so self-registering adapters (ESP_TRACE_REGISTER_*) are not discarded
)

Expand Down
2 changes: 1 addition & 1 deletion esp_sysview/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.0.0
version: 1.0.1
description: SEGGER SystemView component for ESP-IDF
url: https://github.com/espressif/idf-extra-components/tree/master/esp_sysview
issues: https://github.com/espressif/idf-extra-components/issues
Expand Down
3 changes: 2 additions & 1 deletion esp_sysview/linker.lf → esp_sysview/linker.lf.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[mapping:esp_sysview]
archive: libesp_sysview.a
archive: lib${COMPONENT_NAME}.a
entries:
# Place all the symbols in the IRAM to allow tracing when flash cache is disabled
SEGGER_SYSVIEW (noflash)
SEGGER_RTT_esp (noflash)
SEGGER_SYSVIEW_esp (noflash)
SEGGER_SYSVIEW_Config_FreeRTOS (noflash)
SEGGER_SYSVIEW_FreeRTOS (noflash)
adapter_encoder_sysview (noflash)
Expand Down
Loading