<?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>nrf51 SDK7.1 flash api and spi master api</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4857/nrf51-sdk7-1-flash-api-and-spi-master-api</link><description>Does the sdk7.1 + softdevice support flash_page_erase function? 
 
 
 Also, for the spi_master api, is the spi_master_event_handler required or optional?
currently, the code below, 
 
 
 volatile uint32_t err_code = spi_master_send_recv(spi_master_instance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Jan 2015 23:37:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4857/nrf51-sdk7-1-flash-api-and-spi-master-api" /><item><title>RE: nrf51 SDK7.1 flash api and spi master api</title><link>https://devzone.nordicsemi.com/thread/17171?ContentTypeID=1</link><pubDate>Fri, 16 Jan 2015 23:37:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd885786-1019-4b9e-8cd4-9d0d5e82bb7e</guid><dc:creator>ant</dc:creator><description>&lt;p&gt;how do you create that callback and event handler with the sdk 6.1.0 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 SDK7.1 flash api and spi master api</title><link>https://devzone.nordicsemi.com/thread/17170?ContentTypeID=1</link><pubDate>Thu, 18 Dec 2014 16:45:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f23c0300-368f-4cd7-bc3f-5c22e6560b7f</guid><dc:creator>mira67</dc:creator><description>&lt;p&gt;Thanks, after I use the event handler, the NRF_ERROR_BUSY error is gone, but the issue is when spi_master_send_recv is called in a application timeout handler, the event handler is never got called, mean &amp;#39;SPI_MASTER_EVT_TRANSFER_COMPLETED&amp;#39; is never received.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 SDK7.1 flash api and spi master api</title><link>https://devzone.nordicsemi.com/thread/17169?ContentTypeID=1</link><pubDate>Thu, 18 Dec 2014 15:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ba18bc2-625f-48b5-89af-86fb99398fad</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF51_SDK/doc/7.1.0/s110/html/a01075.html#ga9c93dd94a138ad8b5ed3693ea38ffb3e"&gt;Yes&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you use the SPI master driver, then you initialize the driver with spi_master_init which requires that you specify spi event handler as parameter, so yes I think it is mandatory if you use the driver. Otherwise you will not get a callback once the data has been clocked out on SPI that you send/receive with calling spi_send_recv function.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I do not see that the spi_master_send_recv function throws NRF_ERROR_INVALID_DATA error. Are you using the spi_master example from SDK 7.1.0 unmodified?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>