<?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>Runtime error when configuring spim for &amp;#39;use_hw_ss&amp;#39;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107959/runtime-error-when-configuring-spim-for-use_hw_ss</link><description>I successfully compiled, flashed, and ran the &amp;#39; v2.5.0/modules/hal/nordic/nrfx/samples/src/nrfx_spim/blocking&amp;#39; sample. 
 Then I made 2 slight mods to main.c : 
 (1) EDITED: nrfx_spim_config_t spim_config = NRFX_SPIM_DEFAULT_CONFIG(SCK_PIN, MOSI_PIN, MISO_PIN</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Feb 2024 18:57:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107959/runtime-error-when-configuring-spim-for-use_hw_ss" /><item><title>RE: Runtime error when configuring spim for 'use_hw_ss'</title><link>https://devzone.nordicsemi.com/thread/467246?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 18:57:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf64c7ab-f128-4824-bd33-322ecaffa769</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;I pretty much stumbled over the same &amp;quot;issue&amp;quot; yesterday (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/107953/unable-to-get-spim-peripheral-to-use-csn-signal"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/107953/unable-to-get-spim-peripheral-to-use-csn-signal&lt;/a&gt;). There is only one SPIM peripheral that supports all the documented feature. The only point, where that is documented, seems to be the table direct in front of the register description of the Product Specification. And I even read it, but failed to interpret it correctly :-)&lt;/p&gt;
&lt;p&gt;Yes, the Zephyr peripheral abstractions seem to be very generic and as in C, there are not much ways abstract things, you and up with a lot of functions pointers that can not be easily optimized away be the compiler / linker.&lt;/p&gt;
&lt;p&gt;I was really surprised by the binary sizes, that Zephyr produces. But I&amp;#39;m just starting to work with Zephyr and maybe a lot of the binary size is just the logging that seems to be all over the place.&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;Torsten&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Runtime error when configuring spim for 'use_hw_ss'</title><link>https://devzone.nordicsemi.com/thread/467242?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 18:19:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9ca2435-e135-4fa1-af1e-94439838295c</guid><dc:creator>jle</dc:creator><description>&lt;p&gt;Hi Torsten,&lt;/p&gt;
&lt;p&gt;Thanks for your suggestion, The modified sample works with SPIM4.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have been searching the 780 pages of&amp;nbsp;&lt;a id="" href="https://infocenter.nordicsemi.com/pdf/nRF5340_OPS_v0.5.pdf"&gt;https://infocenter.nordicsemi.com/pdf/nRF5340_OPS_v0.5.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;A search of said document for the keywords use_hw_ss, SPIM4, or SPI4, yields no &amp;#39;hits&amp;#39;.&lt;/p&gt;
&lt;p&gt;Where does it specify which SPIMs accept the &amp;#39;use_hw_ss&amp;#39; configuration option and if there are any SS pin choice restrictions per SPIM supported?&lt;/p&gt;
&lt;p&gt;Is there a better document to reference to obtain this information?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;JLE&lt;/p&gt;
&lt;p&gt;P.S. In my opinion the nrfx spim driver is much more timing efficient than the zephyr version . That appears to be true of all of the nrfx drivers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Runtime error when configuring spim for 'use_hw_ss'</title><link>https://devzone.nordicsemi.com/thread/467215?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 15:15:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb171197-7abf-444f-aa7e-fbb59eb0ca00</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Have you tried SPIM4?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>