<?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 use pins occupied by Zephyr?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74603/how-to-use-pins-occupied-by-zephyr</link><description>Hi, 
 I am using NRF5340DK, and I want to define P0.20 as my SPI MOSI pin. 
 However, this pin is pre-defined by Zephyr as uart0 tx pin, in zephyr.dts: 
 
 Everytime I reset the cpu, P0.20 pin will be low-level, after entered the main function, P0.20</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Apr 2021 06:35:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74603/how-to-use-pins-occupied-by-zephyr" /><item><title>RE: How to use pins occupied by Zephyr?</title><link>https://devzone.nordicsemi.com/thread/307597?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 06:35:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54894435-d410-4f81-9674-3cb90ff4d4fa</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;disable the serial component:&lt;/p&gt;
&lt;p&gt;CONFIG_SERIAL=n&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use pins occupied by Zephyr?</title><link>https://devzone.nordicsemi.com/thread/307590?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 06:16:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab5882cc-1144-442e-bb42-350f40f9a0d0</guid><dc:creator>squwal</dc:creator><description>&lt;p&gt;Thank you for reply!&lt;/p&gt;
&lt;p&gt;Could you please tell me how to disable uart0 claimed by Zephyr RTOS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use pins occupied by Zephyr?</title><link>https://devzone.nordicsemi.com/thread/307588?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 06:11:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec786244-9b53-4f07-9687-b12dc97c7f38</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You cannot reuse a pin that is already claimed by a peripheral, in this case the UART.&lt;/p&gt;
&lt;p&gt;To use this GPIO as a normal output, you have to stop the TXD.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>