<?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>nrf5340: How to Reconfigure Pins P0.08. P0.09, P0.10, P0.11, P0.12 for SPI Bus</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91165/nrf5340-how-to-reconfigure-pins-p0-08-p0-09-p0-10-p0-11-p0-12-for-spi-bus</link><description>Hello, 
 
 I developed a driver for communicating with the kx134-1211 accelerometer over SPI for the nrf5340-dk. The driver works when the following pins are configured for SPI in the overlay file: 
 
 &amp;amp;spi1 { 
 compatible = &amp;quot;nordic,nrf-spim&amp;quot; ; 
 status</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Aug 2022 08:59:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91165/nrf5340-how-to-reconfigure-pins-p0-08-p0-09-p0-10-p0-11-p0-12-for-spi-bus" /><item><title>RE: nrf5340: How to Reconfigure Pins P0.08. P0.09, P0.10, P0.11, P0.12 for SPI Bus</title><link>https://devzone.nordicsemi.com/thread/382853?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 08:59:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21a8ad52-30c7-41ac-9242-0301a418f51f</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Matt,&lt;br /&gt;&lt;br /&gt;I am glad that proposed steps helped you to resolve the issue.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340: How to Reconfigure Pins P0.08. P0.09, P0.10, P0.11, P0.12 for SPI Bus</title><link>https://devzone.nordicsemi.com/thread/382770?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 23:44:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d81ebf1a-8a47-4907-83ed-2caa35a1829e</guid><dc:creator>mattmacleod</dc:creator><description>&lt;p&gt;Hi Dejan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for getting back to me.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I upgraded to V1.9.0 and comments out the following lines and it worked for me.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much for your help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Matt&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340: How to Reconfigure Pins P0.08. P0.09, P0.10, P0.11, P0.12 for SPI Bus</title><link>https://devzone.nordicsemi.com/thread/382740?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 14:58:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f6042fe-2e12-4f4b-8d03-fec94b78f590</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Matt,&lt;br /&gt;&lt;br /&gt;Passing the control over detected pins to the network core has been changed&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/commit/81c48c3e684f1277b89e711b72366a5a676bc880#diff-e8e632a20868367a2e09a10802b91ac1df1bdc0d9c33c83d4858d6f496d60e3c"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you are using some older version of NCS, you might have an issue because pins might still be hardcoded instead of being configured to use devicetree.&amp;nbsp;&lt;br /&gt;In your case, pins 10 and 11 are probably hardcoded as you can see&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.99-ncs1-branch/boards/arm/nrf5340dk_nrf5340/nrf5340_cpunet_reset.c#L19-L20"&gt;here&lt;/a&gt;&amp;nbsp;and then used in the same file. You would probably need to comment out the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.99-ncs1-branch/boards/arm/nrf5340dk_nrf5340/nrf5340_cpunet_reset.c#L35-L38"&gt;lines&lt;/a&gt;&amp;nbsp;where pins are assigned to the network core in the board file.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>