<?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>How to send data from flash memory to ble?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22702/how-to-send-data-from-flash-memory-to-ble</link><description>Hello,
I am using PCA10028 and sdk 12.2.0. Now I have interfaced temperature sensor and I am storing 4000 readings from sample to flash. Once all the 4000 samples are stored I want to send this data to my nrf app using ble. How can I do that? 
 I am</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Jun 2017 08:35:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22702/how-to-send-data-from-flash-memory-to-ble" /><item><title>RE: How to send data from flash memory to ble?</title><link>https://devzone.nordicsemi.com/thread/89259?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2017 08:35:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:828a378e-b1f1-4cf7-9bb9-263f38e4e268</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;Hello Kristin,
I have downloaded code ble_app_uart_test_throughput.zip from &lt;a href="https://devzone.nordicsemi.com/question/99856/sending-multiple-data-packets-continuously-on-uart-service/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;.
I think this is what you were trying to suggest me.
Now my only challenge is that my function data_send gives me error as conflicting types for data_send and when I call this function like below&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; case BLE_EVT_TX_COMPLETE:
        if(m_nus.is_notification_enabled == true)
					{
						err_code = sd_nvic_SetPendingIRQ(DATA_SEND_IRQn);
						APP_ERROR_CHECK(err_code);
						data_send();
					}
        break;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It gives me error as &amp;quot;implicit declaration of function&amp;quot;
Thanks,
Shailav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data from flash memory to ble?</title><link>https://devzone.nordicsemi.com/thread/89257?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 08:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e6a1613-94af-4b60-8b33-b5fc642635b5</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;I am following your blog &lt;a href="https://devzone.nordicsemi.com/question/70234/how-to-send-gyro-sensor-data-through-bluetoothble/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
I think my application is similar to this.
Could you please help me to build my code using this blog or suggest me code snippet to add.
Thanks,
Shailav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data from flash memory to ble?</title><link>https://devzone.nordicsemi.com/thread/89261?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 12:32:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d95bf71-371c-4c06-b2ef-0eb4e8018696</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;For how to transfer the data (fast), I would recommend you to take a look the example ble_app_uart, and specifically how the function ble_nus_string_send() is being called and how its errors are handled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data from flash memory to ble?</title><link>https://devzone.nordicsemi.com/thread/89258?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 06:56:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:129ea52e-60d2-435a-9510-b2fa9a39e36f</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;Hello,
I have solved the challenge of  mcu rest. Now the only challenge is of sending the 4k samples over ble.
Thanks,
Shailav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data from flash memory to ble?</title><link>https://devzone.nordicsemi.com/thread/89265?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 12:51:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e529a7e-77ab-4b3d-ab6b-fc4e1ac6d0ee</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;Hello Kristin,
I opened that case for reset challenge. But I am also looking for solution for sending the data out through ble as mentioned above.
Thanks,
Shailav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data from flash memory to ble?</title><link>https://devzone.nordicsemi.com/thread/89264?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 12:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:234ef505-1d96-4504-a269-43fc97d4b72d</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I see that you also have a case open in myPage,  please continue there.  In addition, please avoid to make duplicates here on devzone: &lt;a href="https://devzone.nordicsemi.com/question/150854/undesirable-reset-of-nrf51822/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data from flash memory to ble?</title><link>https://devzone.nordicsemi.com/thread/89263?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 12:42:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ae1dd8e-7aea-45c9-9bde-68275ddb3f75</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;It returns 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data from flash memory to ble?</title><link>https://devzone.nordicsemi.com/thread/89262?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 11:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5833133-3f02-47c6-ba95-4077e0d105a0</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Which error code does sd_ble_gap_adv_start() return?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data from flash memory to ble?</title><link>https://devzone.nordicsemi.com/thread/89260?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2017 07:21:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9266443b-7d1f-4102-bba6-24f2de2fbcae</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;Hello Kristin,
In the previous case you helped me out to use FDS and I was able to write and read the data.&lt;/p&gt;
&lt;p&gt;This function writes 4k samples in memory.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;	while(count!=4000)
{
	tmp = 280;
read_sensor_data(0x02, 0,(uint8_t*)&amp;amp;tmp, sizeof(tmp));
tmp = (tmp/10);
err_code =fds_test_write(tmp);
	APP_ERROR_CHECK(err_code);
	nrf_delay_ms(2000);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;count++;
}&lt;/p&gt;
&lt;p&gt;My below function reads samples&lt;/p&gt;
&lt;p&gt;//wait until the write is finished.
while (write_flag==0);
err_code = fds_read();
APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;Now after the above function I am adding&lt;/p&gt;
&lt;p&gt;advertising_start();
But this time my pca10028 doesnt advertise.&lt;/p&gt;
&lt;p&gt;Also I am looking for suggestions on how to send 4000 samples to nrf app using ble.&lt;/p&gt;
&lt;p&gt;I have attached my code. It would be great if you could test at your end suggest me changes in the same.&lt;/p&gt;
&lt;p&gt;Thanks,
Shailav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data from flash memory to ble?</title><link>https://devzone.nordicsemi.com/thread/89256?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2017 06:57:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc2ebc0d-1592-45d8-8ec8-82f5c9c9a0dd</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The example ble_app_hrs-fds-test-github.zip in &lt;a href="https://devzone.nordicsemi.com/question/114194/assistance-with-fds/?answer=114227#post-id-114227"&gt;this&lt;/a&gt; answer shows how to use FDS when the softdevice is enabled, I would recommend you to take a look at it.  It shows how to write and read data from flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>