<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to enable printk() debug message in psa_crypto.c?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102652/how-to-enable-printk-debug-message-in-psa_crypto-c</link><description>I have added printk() debug message in psa_import_key() function body. But I can&amp;#39;t see &amp;quot;psa_import_key() e&amp;quot; in log messages of RTT Viewer. 
 
 The following are log messages of RTT Viewer. 
 00&amp;gt; *** Booting Zephyr OS build v3.3.99-ncs1 *** 00&amp;gt; Importing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Aug 2023 08:54:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102652/how-to-enable-printk-debug-message-in-psa_crypto-c" /><item><title>RE: How to enable printk() debug message in psa_crypto.c?</title><link>https://devzone.nordicsemi.com/thread/440250?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2023 08:54:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f20932f-da7b-4ed8-b401-dc9a4c88275a</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;I can see printk() log message from&amp;nbsp; psa_import_key() function body of D:\ncs\v2.4.0\nrfxlib\crypto\nrf_oberon\core\library\psa_crypto.c as follows.&lt;/p&gt;
&lt;p&gt;00&amp;gt; *** Booting Zephyr OS build v3.3.99-ncs1 ***&lt;br /&gt;00&amp;gt; btInit() e&lt;br /&gt;00&amp;gt; btInit() x&lt;br /&gt;00&amp;gt; Starting AES-CBC-NO-PADDING example...&lt;br /&gt;00&amp;gt; Encrypting using AES CBC MODE...&lt;br /&gt;00&amp;gt; Importing AES key...&lt;br /&gt;00&amp;gt; psa_import_key() nrf e&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I list related configurations of prj.conf as follows.&lt;br /&gt;# AES&lt;br /&gt;CONFIG_NRF_SECURITY=y&lt;br /&gt;CONFIG_MBEDTLS_PSA_CRYPTO_C=y&lt;br /&gt;CONFIG_MBEDTLS_ENABLE_HEAP=y&lt;br /&gt;CONFIG_MBEDTLS_HEAP_SIZE=8192&lt;br /&gt;# logging&lt;br /&gt;CONFIG_LOG=y&lt;br /&gt;CONFIG_LOG_DEFAULT_LEVEL=2&lt;br /&gt;CONFIG_LOG_MODE_DEFERRED=y&lt;br /&gt;CONFIG_LOG_BACKEND_RTT=y&lt;br /&gt;CONFIG_LOG_BACKEND_UART=n&lt;br /&gt;CONFIG_PRINTK=y&lt;br /&gt;CONFIG_USE_SEGGER_RTT=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable printk() debug message in psa_crypto.c?</title><link>https://devzone.nordicsemi.com/thread/440226?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2023 06:29:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc9105f5-8eb1-4e56-81a7-a9dd09a204f2</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6266.minimal_5F00_log_5F00_aes.zip"&gt;devzone.nordicsemi.com/.../6266.minimal_5F00_log_5F00_aes.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable printk() debug message in psa_crypto.c?</title><link>https://devzone.nordicsemi.com/thread/440225?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2023 06:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b6e8284-221a-4d98-8609-e6fc8de87275</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5460.psa_5F00_crypto.c"&gt;devzone.nordicsemi.com/.../5460.psa_5F00_crypto.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>