<?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>SPIM not working after porting ncs from 1.2.0 to 1.4.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71870/spim-not-working-after-porting-ncs-from-1-2-0-to-1-4-2</link><description>SoC nrf52840, nrf connect SDK v1.4.2 
 we have a board with 3 sensors connected with independent SPI interfaces. after porting the code to ncs v1.4.2 from v1.2.0 the SPI communication stops working! I checked all the SPI pins (CS, mosi and clock) and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Feb 2021 10:10:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71870/spim-not-working-after-porting-ncs-from-1-2-0-to-1-4-2" /><item><title>RE: SPIM not working after porting ncs from 1.2.0 to 1.4.2</title><link>https://devzone.nordicsemi.com/thread/295780?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 10:10:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47603321-f179-421c-ad55-7d05045bf271</guid><dc:creator>GNotman</dc:creator><description>&lt;p&gt;You may also need to modify your gpios specifications above. e.g:&lt;/p&gt;
[quote userid="93859" url="~/f/nordic-q-a/71870/spim-not-working-after-porting-ncs-from-1-2-0-to-1-4-2"]&lt;span&gt;cs-gpios&lt;/span&gt;&lt;span&gt; = &amp;lt;&amp;amp;&lt;/span&gt;&lt;span&gt;gpio1&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;7&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;[/quote]
&lt;p&gt;&lt;br /&gt;cs-gpios = &amp;lt;@gpio1 7&amp;nbsp;GPIO_ACTIVE_LOW&amp;gt;&lt;/p&gt;
&lt;p&gt;The irq line probably needs a similar modification as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM not working after porting ncs from 1.2.0 to 1.4.2</title><link>https://devzone.nordicsemi.com/thread/295627?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 14:16:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:346a57d5-f016-40c4-8564-240eca6ca4f1</guid><dc:creator>GNotman</dc:creator><description>&lt;p&gt;I believe I ran into a similar issue.&lt;/p&gt;
&lt;p&gt;I believe the issue is due to this commit:&lt;br /&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/commit/5963ebaf33bb542de1a7b2e1cf03b0af476e8dab"&gt;https://github.com/zephyrproject-rtos/zephyr/commit/5963ebaf33bb542de1a7b2e1cf03b0af476e8dab&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Which was added in Zephyr&amp;nbsp;v2.4.0-rc1, which then made it into v1.4.x of the NRF SDK.&lt;/p&gt;
&lt;p&gt;There is a new field in `spi_cs_control`, labelled `gpio_dt_flags`.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This&amp;nbsp;needs to&amp;nbsp;be set to `GPIO_ACTIVE_LOW` for the standard CS pull-low behaviour, or `GPIO_ACTIVE_HIGH` for the inverse.&lt;/p&gt;
&lt;p&gt;Unfortunately, `&lt;span&gt;GPIO_ACTIVE_HIGH == 0` which means that if it is not explicitly set, in most cases it will default to the non-standard behaviour.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>