<?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 Problem, SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45855/spim-problem-sdk-15-3-s132</link><description>Having problems getting SPI master to work with CC3100 wifi chip. 
 Using TI SPI porting diagnostics to verify operation. 
 Based on recommendations, attempted to switch to using nrfx spim approach. 
 If I run through the test loop by stepping over all</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Apr 2019 04:07:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45855/spim-problem-sdk-15-3-s132" /><item><title>RE: SPIM Problem, SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/181737?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 04:07:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c869bcf3-e833-49b1-823a-1f6bef0d430d</guid><dc:creator>cemerick</dc:creator><description>&lt;p&gt;Looks like we will resolve this by making the spi read/write be blocking functions that wait for the spi transfer to complete. Then it looks like the ti CC3100 needs another 300us delay between transfers in order to work ok.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Problem, SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/181680?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 15:13:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75e83ab0-f508-432c-9d3b-314944394a48</guid><dc:creator>cemerick</dc:creator><description>&lt;p&gt;In the TI porting spi diagnostics, 4 bytes are being either written or read for each transfer. So I am still puzzled as to why there are thousands of spim events in a few seconds when the code is not doing any transfers.&amp;nbsp; I will see if I can work around issues by aborting or stopping the spi function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Problem, SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/181664?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 14:15:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a05efeca-635f-4f08-adf7-9adb68e078f0</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The examples in the SDK use the (nrfx) SPI(M) drivers, which only trigger STOP task in abort/uninit functions. Typically a transfer is allowed to complete, which will leave the peripheral in idle/stopped state.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Problem, SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/181663?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 14:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b3ff7a8-3d73-4ec5-a808-9eeb1d472262</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The examples in the SDK use the (nrfx) SPI(M) drivers, which only trigger STOP task in abort/uninit functions. Typically a transfer is allowed to complete, which will leave the peripheral in idle/stopped state.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Problem, SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/181379?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 15:51:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efac719d-9cce-4609-9d38-a17dd89611e6</guid><dc:creator>cemerick</dc:creator><description>&lt;p&gt;Thank you I will see if that stops the spim handler interrupts.&amp;nbsp; Are there any examples that show/use STOP tasks and related events to demonstrate starting, stopping or pausing functionality ? That would help communicate what is required a bit better.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Problem, SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/181376?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 15:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:501689bb-0452-48a4-bd8f-5697fcc7e0a5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Both should be fine. You should not get any events/interrupts from the SPIM peripheral after you trigger the &lt;a href="https://www.nordicsemi.com/DocLib/Content/Product_Spec/nRF52840/latest/spim?919#register.TASKS_STOP"&gt;STOP&lt;/a&gt; task and received the &lt;a href="https://www.nordicsemi.com/DocLib/Content/Product_Spec/nRF52840/latest/spim?919#register.EVENTS_STOPPED"&gt;STOPPED&lt;/a&gt; event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Problem, SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/181116?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 14:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcc5ac42-a3fd-487a-8b3f-e8c768a56596</guid><dc:creator>cemerick</dc:creator><description>&lt;p&gt;What is the proper way to stop the spim events ? I can&amp;#39;t seem to find a way to stop the spim events. Do you have to uninit the spim or can you disable the spi interrupt ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Problem, SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/181102?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 13:58:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f09093a-c728-4af6-ad85-b0e7ae1baa64</guid><dc:creator>cemerick</dc:creator><description>&lt;p&gt;The dual for sections had already been removed.&amp;nbsp; The TestSpi function was not being called more than expected . There is only one write and then three reads of 4 bytes so I don&amp;#39;t see what is triggering all of the spim events.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Problem, SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/180949?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 08:36:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3cbeabb-4584-45b5-8339-5ff80f8efd78</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure what you are trying to do in this section, but it does not look like a good way of doing this. You should avoid using the same variable name for both loops, and the brackets seems to be misplaced.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; for (int i = 1; i &amp;lt; 11; i++)
 for (int i = 1; i &amp;lt; 11; i++)
 {
  while (!spi_xfer_done) {__NOP;}
    {
      NRF_LOG_INFO(&amp;quot;*****Starting Pass : %d \r\n&amp;quot;, i);
    //  CC3100_InterruptEnable();
      irgcnt = 0;
      TestSpi();
      // spi_Close(1);
      __NOP;
      }
 }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You should also make sure to add a endless while loop at the end of the main() function, the application might not work as expected if the main loop is exited. Have you checked it TestSpi() function is called more times than expected? The SPI peripheral will give you events when it is done transferring data, regardless of the state of the connected device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Problem, SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/180851?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 17:24:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bac2d913-a90d-486a-93b3-f8103effb309</guid><dc:creator>cemerick</dc:creator><description>&lt;p&gt;The spim event handler is being called. Multiple times even after the wifi chip is reset/disabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM Problem, SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/180749?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 12:18:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28ae85c3-ef71-4f91-8ac1-d463496888cc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]either get an assert or a flood of interrupts[/quote]
&lt;p&gt;What kind of assert or interrupts are you receiving? Is this interrupts from the WiFi chip, or are you getting interrupts from the SPI interface?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>