<?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>Saving Data to NRF52840 then Writing to SD card.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96194/saving-data-to-nrf52840-then-writing-to-sd-card</link><description>Hello, 
 I have an NRF52840 and I was wondering if I wanted to save IMU data to storage on the microcontroller, would that be better on flash or eeprom, as from what i know those are the two main types of storage on the microcontroller. With my project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Jan 2023 19:23:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96194/saving-data-to-nrf52840-then-writing-to-sd-card" /><item><title>RE: Saving Data to NRF52840 then Writing to SD card.</title><link>https://devzone.nordicsemi.com/thread/407428?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 19:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee8f9cc7-ad11-4b84-82f3-14b069d91431</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I agree with what&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/turboj"&gt;Turbo J&lt;/a&gt;&amp;nbsp; said above. I have not profiled the current consumption of writing to internal flash vs. writing to an SD card,&amp;nbsp;but I assume it should be efficient to store it to a SD card as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For reference, the internal flash is rated to last 10 000 write/erase cycles, see&amp;nbsp;&lt;a class="" title="Absolute maximum ratings" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/abs_max_ratings.html?cp=5_0_0_8"&gt;Absolute maximum ratings&lt;/a&gt;. This&amp;nbsp;applies to each 4K flash page.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Saving Data to NRF52840 then Writing to SD card.</title><link>https://devzone.nordicsemi.com/thread/407414?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 16:39:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:229c5a9b-de5e-474c-a2d4-75e6c0f503d2</guid><dc:creator>wellmacj</dc:creator><description>&lt;p&gt;got it i&amp;#39;ll check out buffering the data in the RAM, and also focus on writing in smaller amounts less than 16 KB. got it. Thank you for the response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Saving Data to NRF52840 then Writing to SD card.</title><link>https://devzone.nordicsemi.com/thread/407412?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 16:36:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bede4ad-ad82-4780-a5f2-0e227f55a11c</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;The program flash inside the NRF5280 does not like to be written to too often, much less than an SD card.&lt;/p&gt;
&lt;p&gt;Try buffering a decent amount of data in RAM, then write to card.&lt;/p&gt;
&lt;p&gt;Warning: When you write 16KB at once to the card, it may &lt;strong&gt;not&lt;/strong&gt; turn back to low power mode on its own. Reading or writing a single sector fixes that behavior IIRC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>