<?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 SPI high drive within nRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97962/nrf5340-spi-high-drive-within-nrf-connect-sdk</link><description>Hi, 
 I can see from other posters that high drive can be enabled via calling the nrf_gpio_cfg() function. 
 But when using the nRF5340 and the nRF Conenct SDK, the configuration of the SPI is mainly done via the &amp;#39;.conf&amp;#39; and &amp;#39;.overlay&amp;#39; configuration rather</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Mar 2023 15:57:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97962/nrf5340-spi-high-drive-within-nrf-connect-sdk" /><item><title>RE: nrf5340 SPI high drive within nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/416880?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2023 15:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b13831a-3412-41e6-9030-c1232c7fe9b6</guid><dc:creator>d_c_h_w</dc:creator><description>&lt;p&gt;ok thanks for your response.&lt;/p&gt;
&lt;p&gt;Apologies, I should have mentioned the version of SDK I was using, which is 1.6.1, which was the latest version during the actual development of our application.&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/97962/nrf5340-spi-high-drive-within-nrf-connect-sdk/416862"]For NCS v1.x, you need to manually set the drive-strength after SPI initialization to get high drive.[/quote]
&lt;p&gt;Having done some debugging of the start up procedure, I see that the intiilaization is called only once, so I should be able to manually set the drrive strength of each pin of the spi with the&amp;nbsp;&lt;span&gt;nrf_gpio_cfg function at a point I know the first initializtion has already taken place.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 SPI high drive within nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/416862?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2023 15:05:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:089085e9-cdc3-4db4-9f4b-56d7732238c1</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;Based on your overlay, it looks like you are using NCS v1.X. Newer v2.x uses pinctrl, where you can specify the drive strength of GPIOs given to bus instances. Here&amp;#39;s an example:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.3.0/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp_common-pinctrl.dtsi#L75"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.3.0/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp_common-pinctrl.dtsi#L75&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For NCS v1.x, you need to manually set the drive-strength after SPI initialization to get high drive.&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><item><title>RE: nrf5340 SPI high drive within nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/416778?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2023 12:01:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc6cb350-ed02-4109-a6d9-6b7a92f7c5d2</guid><dc:creator>d_c_h_w</dc:creator><description>&lt;p&gt;Ideally I would like to be able to specify in the dts overlay file, but when I try and add extra parameters to this they fail to parse properly (cmake)&lt;/p&gt;
&lt;p&gt;e.g trying to add thing like&lt;/p&gt;
&lt;p&gt;clock-frequency = &amp;lt;32000000&amp;gt;;&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;sck-frequency = &amp;lt;&lt;span&gt;32000000&lt;/span&gt;&amp;gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;To this&lt;/p&gt;
&lt;p&gt;/* use the high speed spi */&lt;br /&gt;&amp;amp;spi4 {&lt;br /&gt; compatible = &amp;quot;nordic,nrf-spim&amp;quot;;&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; mosi-pin = &amp;lt;9&amp;gt;;&lt;br /&gt; miso-pin = &amp;lt;10&amp;gt;;&lt;br /&gt; sck-pin = &amp;lt;8&amp;gt;;&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;causes problems, so I presume I am doing it in the wrong way. I have looked atother peoples examples and tried to use this for guidance&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/build/dts/api/bindings/spi/nordic%2Cnrf-spim.html#dtbinding-nordic-nrf-spim"&gt;https://docs.zephyrproject.org/latest/build/dts/api/bindings/spi/nordic%2Cnrf-spim.html#dtbinding-nordic-nrf-spim&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>