<?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>Thingy 52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30491/thingy-52</link><description>Hello everyone, 
 Is it possible to add an external flash memory like this one here: www.digikey.com/.../4211595 on nRF52? 
 Thank you in advance!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Feb 2018 21:53:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30491/thingy-52" /><item><title>RE: Thingy 52</title><link>https://devzone.nordicsemi.com/thread/121588?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 21:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c15dd4b-c922-4519-8460-a29e73485b9a</guid><dc:creator>cveja</dc:creator><description>&lt;p&gt;Actually I&amp;#39;m a student, and I got this task for my final year project, for my bachelor degree.&amp;nbsp;&lt;br /&gt;To be honest I don&amp;#39;t if my professor consider it enough, or just throw me some random task.&amp;nbsp;&lt;br /&gt;First I thought it&amp;#39;s gonna be an easy task, but now my head is spinning.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 52</title><link>https://devzone.nordicsemi.com/thread/121586?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 21:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:873ae68d-6a9b-4015-98ea-13bfdf8adedf</guid><dc:creator>GT Software</dc:creator><description>&lt;p&gt;I can&amp;#39;t help but think that an I2C serial flash would be a lot easier.&lt;/p&gt;
&lt;p&gt;I should really have started with ... what do you want to achieve by attaching an external flash?&lt;/p&gt;
&lt;p&gt;Anyway, good luck and let us know how you get on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 52</title><link>https://devzone.nordicsemi.com/thread/121580?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 19:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1951a529-9745-43d3-a115-20ca9601c103</guid><dc:creator>cveja</dc:creator><description>&lt;p&gt;Thank you for your effort! I&amp;#39;m going to try wire it, like you suggested.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 52</title><link>https://devzone.nordicsemi.com/thread/121453?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 01:06:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51516385-fb4f-4c3b-a661-03b3de8c269f</guid><dc:creator>GT Software</dc:creator><description>&lt;p&gt;&lt;strong&gt;For the wiring&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The easy flash pins are VCC and GND&lt;/p&gt;
&lt;p&gt;As a minimum the SPI bus has CS#, SCLK, MISO (SO), MOSI (SI).&lt;/p&gt;
&lt;p&gt;After a quick scan of the datasheet, there is a HOLD# pin that can be tied high and a WP# pin that can be tied high too.&lt;/p&gt;
&lt;p&gt;On my Thingy 52 there are just three port pins marked on the large P4 connector :&amp;nbsp;P0.02,&amp;nbsp;P0.03 and P0.04&lt;/p&gt;
&lt;p&gt;That&amp;#39;s not enough for the SPI bus. I would assign the fast changing signals SCLK, MISO and MOSI to those and use another pin for the slow changing chip select.&lt;/p&gt;
&lt;p&gt;EXT.0 .. EXT.3 seem to be through a GPIO expander. I&amp;#39;d tie CS# to EXT0. You could tie HOLD# and WP# to others if needed.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;For the software&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the DK but the software should be similar to this...&lt;/p&gt;
&lt;p&gt;nrf_drv_spi_t spi = NRF_DRV_SPI_INSTANCE(1);&lt;/p&gt;
&lt;p&gt;nrf_drv_spi_config_t cfg;&lt;/p&gt;
&lt;p&gt;void init(void)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; cfg.frequency = NRF_DRV_SPI_FREQ_1M;&lt;br /&gt;&amp;nbsp; cfg.sck_pin =&amp;nbsp;2; // P0.02&lt;br /&gt;&amp;nbsp; cfg.miso_pin =&amp;nbsp;3; // P0.03&lt;br /&gt;&amp;nbsp; cfg.mosi_pin =&amp;nbsp;4; // P0.04&lt;br /&gt;&amp;nbsp; cfg.ss_pin = NRF_DRV_SPI_PIN_NOT_USED;&lt;br /&gt;&amp;nbsp; cfg.bit_order = NRF_DRV_SPI_BIT_ORDER_MSB_FIRST;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; // NULL : No handler, operates in blocking mode&lt;br /&gt;&amp;nbsp; uint32_t result = nrf_drv_spi_init(&amp;amp;spi, &amp;amp;cfg, NULL);&lt;br /&gt; &lt;br /&gt;&amp;nbsp; if (NRF_SUCCESS != result)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; // error&lt;br /&gt;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;static uint8_t junk;&lt;br /&gt;static uint8_t data = 0;&lt;/p&gt;
&lt;p&gt;// use GPIO expander for chip select&lt;br /&gt;&lt;br /&gt; data = &amp;lt;value here&amp;gt;;&lt;br /&gt; &lt;br /&gt; uint32_t result = nrf_drv_spi_transfer (&amp;amp;spi, (uint8_t*)&amp;amp;data, 1, &amp;amp;junk, 1); &lt;br /&gt; &lt;br /&gt; if (NRF_SUCCESS != result)&lt;br /&gt; {&lt;br /&gt; // err&lt;br /&gt; }&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 52</title><link>https://devzone.nordicsemi.com/thread/121373?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2018 10:48:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:569e1a05-c6f3-446f-b998-c7143a7c5e8f</guid><dc:creator>cveja</dc:creator><description>&lt;p&gt;Well my task is to do it on thingy52, so I must use nRF52832. Can you suggest how to wire it, its confusing to me, I can use any random GPIO&amp;#39;s to connect flash with nRF52(for SPI)? Can you give an example how would you connect it?&lt;br /&gt;Sorry for bothering you further, it would mean a lot. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 52</title><link>https://devzone.nordicsemi.com/thread/121371?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2018 10:15:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b5f13b9-16fe-4842-8f75-c9c50a36c38b</guid><dc:creator>GT Software</dc:creator><description>&lt;p&gt;I found that the nRF52840 &lt;strong&gt;does&lt;/strong&gt; have QSPI (quad SPI)&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52840.ps%2Fqspi.html"&gt;http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52840.ps%2Fqspi.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The nRF52832 has SPI (single SPI)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 52</title><link>https://devzone.nordicsemi.com/thread/121030?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 00:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:102b503f-19f6-42fe-aeff-3dcc29e7a246</guid><dc:creator>cveja</dc:creator><description>&lt;p&gt;Many thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy 52</title><link>https://devzone.nordicsemi.com/thread/120758?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 20:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deadcb36-faf1-497a-914e-15a9a1ba8f30</guid><dc:creator>GT Software</dc:creator><description>&lt;p&gt;That flash memory mx25l25735f has single, dual and quad SPI interfaces. The nRF52 can certainly handle a single SPI bus, so it will be possible to connect the flash memory though it won&amp;#39;t get the maximum data throughput with a single SPI. I don&amp;#39;t know if the nRF52 can handle dual or quad SPI.&lt;/p&gt;
&lt;p&gt;The nRF52 can work with a supply voltage from 17V to 3.6V so the flash working at 3V can be accommodated.&lt;/p&gt;
&lt;p&gt;Looking at the thing 52 there are plenty of places to solder in, so that should be easy.&lt;/p&gt;
&lt;p&gt;That leaves you the task of wiring it in and writing the software to read/write the flash memory - it looks a capable device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>