<?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>nrfx_spim_spis sample cannot be used UART to print</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114067/nrfx_spim_spis-sample-cannot-be-used-uart-to-print</link><description>Hello all, 
 I&amp;#39;m using nrfx_spim_spis non_blocking sample to make my nRF5340 DK as SPI SLAVE. 
 I don&amp;#39;t need SPI MASTER, so I delete the SPIM code. 
 But I found that I can&amp;#39;t use printk to print. 
 My SDK version is ncsv2.3.0. 
 Here is my project. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Aug 2024 08:26:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114067/nrfx_spim_spis-sample-cannot-be-used-uart-to-print" /><item><title>RE: nrfx_spim_spis sample cannot be used UART to print</title><link>https://devzone.nordicsemi.com/thread/499495?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2024 08:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61604a27-4a18-4d72-a5ed-5cea5e6729c0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;I&amp;#39;m not aware that the blinky has any code to print anything on UART.&amp;nbsp;&lt;br /&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;As I mentioned if you do CONFIG_LOG_PROCESS_THREAD=y, you need to do LOG_PROCESS() frequently (usually in the idle thread)&lt;br /&gt;If you want to see the banner&amp;nbsp;*** Booting Zephyr OS build fcaa60a99fa9 *** then you need to set&amp;nbsp;CONFIG_BOOT_BANNER=y&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx_spim_spis sample cannot be used UART to print</title><link>https://devzone.nordicsemi.com/thread/499459?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2024 02:29:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8ba618e-2b72-47f6-9d40-199b3df4dd47</guid><dc:creator>TGuanLa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your reply！&lt;/p&gt;
&lt;p&gt;When I set&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;CONFIG_LOG_PROCESS_THREAD=y,&amp;nbsp;&lt;/strong&gt;the printk could print out on UART.&lt;/p&gt;
&lt;p&gt;I still have a question why other samples can print on UART without &lt;strong&gt;CONFIG_LOG_PROCESS_THREAD=y,&amp;nbsp;&lt;/strong&gt;such as blinky.&lt;/p&gt;
&lt;p&gt;I have tried to keep their config files such as prj.conf and&amp;nbsp; .overlay consistent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx_spim_spis sample cannot be used UART to print</title><link>https://devzone.nordicsemi.com/thread/499372?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 12:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08cdbeea-2447-452a-a31a-4f65b41fc220</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;I found that you can either remove&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_PROCESS_THREAD&lt;/span&gt;&lt;span&gt;&lt;span&gt;=n&lt;br /&gt;&lt;br /&gt;Or if you set&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;CONFIG_LOG_PROCESS_THREAD&lt;/span&gt;&lt;span&gt;=y then&amp;nbsp; you can print out on UART with printk.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;The reason is that if you don&amp;#39;t do&amp;nbsp;&lt;span&gt;CONFIG_LOG_PROCESS_THREAD=y, you would need to do&amp;nbsp;&lt;/span&gt;LOG_PROCESS() to print out on UART.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx_spim_spis sample cannot be used UART to print</title><link>https://devzone.nordicsemi.com/thread/499308?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 07:39:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c66c5561-1cf3-4b4c-a8e8-bf25ef5bcc0a</guid><dc:creator>TGuanLa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Maybe my description is not accurate.&lt;/p&gt;
&lt;p&gt;The sample project uses log to print information while I just want to use printk.&lt;/p&gt;
&lt;p&gt;However, there is nothing print when I use printk.&lt;/p&gt;
&lt;p&gt;It seems uart0 disabled.&lt;/p&gt;
&lt;p&gt;I have already checked the output&amp;nbsp;zephyr.dts. Status of uart0 is &amp;quot;okay&amp;quot;.&lt;/p&gt;
&lt;p&gt;There is nothing print in RTT Viewer. And in debug mode the code works as usual.&lt;/p&gt;
&lt;p&gt;Besides, other samples will firstly print &amp;quot;*** Booting Zephyr OS build fcaa60a99fa9 ***&amp;quot; after booting while my SPIS project prints nothing.&lt;/p&gt;
&lt;p&gt;I wonder why the uart0&amp;nbsp;is not working properly.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx_spim_spis sample cannot be used UART to print</title><link>https://devzone.nordicsemi.com/thread/499200?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2024 12:06:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3ef169b-3422-4c45-907c-10324674ef50</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;Please check if the program assert ? Please try to debug, we can&amp;#39;t help if you simply say &amp;quot; it doesn&amp;#39;t work&amp;quot;.&amp;nbsp;&lt;br /&gt;Try printing the log using RTT.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>