<?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 3 at 16MHz</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39183/spim-3-at-16mhz</link><description>Hello, 
 I&amp;#39;m using SPI 3 to communicate with a NAND memory. I&amp;#39;m able to go up to 8MHz but not more than that. Do I need to set an array list or use the spi manager. 
 Is there any exemple of the spi going up to 16Mhz? 
 
 Best regards</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Oct 2018 09:34:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39183/spim-3-at-16mhz" /><item><title>RE: SPIM 3 at 16MHz</title><link>https://devzone.nordicsemi.com/thread/153764?ContentTypeID=1</link><pubDate>Mon, 22 Oct 2018 09:34:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e72e69a-03ab-4e7b-9545-a727ab0d4c8d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I have not been able to reproduce this on my side. I have modified the SDK 15.2 SPI example to use SPIM3 and the nrfx driver and 16 MHz, and this works as expected on my side.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/500x0/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f52fb0545432438289353d421b95d9b9/16M_5F00_spim3.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;This is my main.c and sdk_config.h file:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f52fb0545432438289353d421b95d9b9/main.c"&gt;devzone.nordicsemi.com/.../main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f52fb0545432438289353d421b95d9b9/sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can you upload your full source code including sck_config.h so that we can compare?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM 3 at 16MHz</title><link>https://devzone.nordicsemi.com/thread/153591?ContentTypeID=1</link><pubDate>Fri, 19 Oct 2018 09:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcf73286-e038-47b5-be36-f2377b107ed7</guid><dc:creator>siri sam</dc:creator><description>&lt;p&gt;when I set SPIM at 16Mz, there is no clk generated anymore but the firmware is still running background.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM 3 at 16MHz</title><link>https://devzone.nordicsemi.com/thread/153582?ContentTypeID=1</link><pubDate>Fri, 19 Oct 2018 08:20:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea8a1001-9c0b-4559-8786-3c744887b5f3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. What happens when you set &amp;quot;config.frequency = NRF_SPIM_FREQ_16M;&amp;quot; this instead? In what way does things fail?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM 3 at 16MHz</title><link>https://devzone.nordicsemi.com/thread/153573?ContentTypeID=1</link><pubDate>Fri, 19 Oct 2018 07:50:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8cbef3f-c950-4af6-b1c9-353306c79c22</guid><dc:creator>siri sam</dc:creator><description>&lt;p&gt;We are using the SDK 15, I&amp;#39;m now migrating to the 15.2. The device work fine at 8Mhz but to optimize our device, we need to go up to 16Mhz.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;here is the init part in our code :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;void init_spi() {&lt;br /&gt; &lt;br /&gt; // CS output&lt;br /&gt; nrf_gpio_cfg_output(SPI_CS);&lt;br /&gt; &lt;br /&gt; nrfx_spim_config_t config = NRFX_SPIM_DEFAULT_CONFIG;&lt;br /&gt; &lt;br /&gt; config.sck_pin = SPI_SCK;&lt;br /&gt; config.miso_pin = SPI_MISO;&lt;br /&gt; config.mosi_pin = SPI_MOSI;&lt;br /&gt; config.rx_delay = 2;&lt;br /&gt; config.frequency = NRF_SPIM_FREQ_8M; // max working frequency&lt;br /&gt; config.irq_priority =2;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; config.mode = NRF_SPIM_MODE_0;&lt;br /&gt; &lt;br /&gt; nrf_gpio_cfg_default(IO_NAND_IO0);&lt;br /&gt; nrf_gpio_cfg_default(IO_NAND_IO1);&lt;br /&gt; nrf_gpio_cfg_output(IO_NAND_IO2);&lt;br /&gt; nrf_gpio_cfg_output(IO_NAND_IO3);&lt;br /&gt; nrf_gpio_pin_write(IO_NAND_IO2, 1);&lt;br /&gt; nrf_gpio_pin_write(IO_NAND_IO3, 1);&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; uint32_t err_code = nrfx_spim_init(&amp;amp;m_spi, &amp;amp;config, spi_event_handler, NULL);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM 3 at 16MHz</title><link>https://devzone.nordicsemi.com/thread/153561?ContentTypeID=1</link><pubDate>Fri, 19 Oct 2018 07:21:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50b9612e-1c10-4d20-8b8f-b4c38d27becb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see, then all should be good. Can you let me know which SDK you are using and how you have configured and are using the SPIM3 peripheral? Seeing your code would be helpful. In what way does it not work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM 3 at 16MHz</title><link>https://devzone.nordicsemi.com/thread/153557?ContentTypeID=1</link><pubDate>Fri, 19 Oct 2018 07:05:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bd69cff-c8bb-4dfb-ae1a-54e07e3dbcfa</guid><dc:creator>siri sam</dc:creator><description>&lt;p&gt;We are using the revision 1. We also have some revision B but as it is describe on some other thread it seems to works with this one too no?&lt;/p&gt;
&lt;p&gt;Anyway all our product are with the final revision.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM 3 at 16MHz</title><link>https://devzone.nordicsemi.com/thread/153554?ContentTypeID=1</link><pubDate>Fri, 19 Oct 2018 06:40:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ec042f3-9f40-4149-b44c-cb735b433882</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Fast SPIM is only functional on the final silicon. Are you using a engineering sample (for instance preview DK) or do you have revision 1? (What is the marking on the chip?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM 3 at 16MHz</title><link>https://devzone.nordicsemi.com/thread/153464?ContentTypeID=1</link><pubDate>Thu, 18 Oct 2018 11:36:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dbec2bc-3a77-4b20-95ff-be7ae8d21268</guid><dc:creator>siri sam</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have seen the thread&amp;nbsp;&lt;span&gt;&amp;nbsp;about the&amp;nbsp;&lt;/span&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.ps/spim.html?cp=2_0_0_5_24_5_19#register.IFTIMING.RXDELAY"&gt;SPIM3-&amp;gt;IFTIMING.RXDELAY&lt;/a&gt;&amp;nbsp;and i&amp;#39;ve set it to 2 but it doesn&amp;#39;t work either.&amp;nbsp;&lt;span&gt;&amp;nbsp;Do you have more information about how I should adapt the driver? I have activated the anomaly 198 workaround but no success.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM 3 at 16MHz</title><link>https://devzone.nordicsemi.com/thread/151799?ContentTypeID=1</link><pubDate>Fri, 05 Oct 2018 10:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88b96a1b-d31d-4273-9ff2-667c5d8996d9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no example of SPIM3 with speeds &amp;gt; 8 MHz. It is supported by the HW, but you have to adapt the driver slightly as it only supports up to 8 MHz. Note that that you should read the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.Rev1.errata/dita/errata/nRF52840/Rev1/latest/err_840_new.html?cp=2_0_1_0_1"&gt;errata list&lt;/a&gt; if you use SPIM3 as there is quite a few issues with it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM 3 at 16MHz</title><link>https://devzone.nordicsemi.com/thread/151712?ContentTypeID=1</link><pubDate>Thu, 04 Oct 2018 15:20:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f614f4d2-a0aa-44f8-8a45-4ffa41effcdc</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Have a look at&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35049/spim3-instance-is-not-working-at-8mhz-also/136565#136565"&gt;this link&lt;/a&gt;, it might help. Also search for SPIM3 for more ..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>