Hi Michael,
The TFM_SPM_LOG_LEVEL is configured in the build type configuration (debug.cmake, release.cmake, etc.). This is included before the platform config.cmake so it won't be overridden. In order to force the log level to a specific level you can use the FORCE keyword
in your set below, or can you pass it on the CMake command line (-DTFM_SPM_LOG_LEVEL=TFM_SPM_LOG_LEVEL_DEBUG).
From: Michael Khoyilar via TF-M <tf-m@lists.trustedfirmware.org>
Sent: 21 March 2025 21:46
To: tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>
Subject: [TF-M] SPM LOG LEVEL
Hi Team,
I am setting the TFM_SPM_LOG_LEVEL to DEBUG in platform config.cmake. Yet it is getting overwritten by TFM_SPM_LOG_LEVEL_SILENCE. Is there any other place
I need to look for? Thanks.
Michael KH
# LOG LEVEL
set(TFM_SPM_LOG_LEVEL TFM_SPM_LOG_LEVEL_DEBUG CACHE STRING "Set default SPM log level as DEBUG level")