Hi,
I'm developing my log system in a project with a secure partition with TF-M. I am following this log system design document. In my project I have, as a test, the following code:
I can use the SPM Log System functions (SPMLOG_DBGMSG and SPMLOG_ERRMSG) successfully. However, I would like to be able to add a color format to the output, to make the error messages to be displayed in red. As you can see, it has default color:
But i would like to print something like this:
I understand that with Partition Log System I will be able to color it. However, when I use LOG_ERRFMT (from Partition Log System), I get the following error:
undefined reference to `LOG_ERRFMT'
I suppose that some include may be missing, but I don't know which one. Is there a way to use LOG_ERRFMT or change the color of SPM_LOG_ERRMSG messages? If there is a third way to display colored log error messages in TF-M, that would also work for me.
Thanks in advance,
Pablo
Useful information about the project:
- I'm using the nRF5340DK development kit.
- nRF SDK v2.0.0
- The project is based on the example: TF-M Secure Partition Sample.
- I'm building with "Enable debug options" option enabled
Project configuration (prj.conf):