<?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>It takes too long to read data using settings(Internal Flash).</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123697/it-takes-too-long-to-read-data-using-settings-internal-flash</link><description>name: 
 
 Code: 
 
 Log1： 
 
 When the storage capacity is 64 entries, continuously reading 32 of them takes about 2 seconds. 
 
 After changing the path, run the write and read code again, and the time taken is as follows. 
 
 Log2: 
 
 When the storage</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Aug 2025 07:54:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123697/it-takes-too-long-to-read-data-using-settings-internal-flash" /><item><title>RE: It takes too long to read data using settings(Internal Flash).</title><link>https://devzone.nordicsemi.com/thread/545743?ContentTypeID=1</link><pubDate>Fri, 15 Aug 2025 07:54:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c03bb175-c024-4467-854e-53ee07c49830</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Have a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/121338/nor-flash-becomes-gradually-slow-over-time/537283"&gt;this previous reply by a coworker of mine&lt;/a&gt;. Could you try using an &lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.1.0/page/zephyr/services/storage/fcb/fcb.html"&gt;FCB backend&lt;/a&gt; and see if it helps?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: It takes too long to read data using settings(Internal Flash).</title><link>https://devzone.nordicsemi.com/thread/545725?ContentTypeID=1</link><pubDate>Fri, 15 Aug 2025 02:04:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93709336-4cdc-46ef-9340-3a35441407d8</guid><dc:creator>Leo Mo</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Currently, this sample has not been tested.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I using these code to read/write data.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/**
 * Initialization of settings and backend
 *
 * Can be called at application startup.
 * In case the backend is a FS Remember to call it after the FS was mounted.
 * For FCB backend it can be called without such a restriction.
 *
 * @return 0 on success, non-zero on failure.
 */
int settings_subsys_init(void);

/**
 * Write a single serialized value to persisted storage (if it has
 * changed value).
 *
 * @param name Name/key of the settings item.
 * @param value Pointer to the value of the settings item. This value will
 * be transferred to the @ref settings_handler::h_export handler implementation.
 * @param val_len Length of the value.
 *
 * @return 0 on success, non-zero on failure.
 */
int settings_save_one(const char *name, const void *value, size_t val_len);

/**
 * Load limited set of serialized items using given callback.
 *
 * This function bypasses the normal data workflow in settings module.
 * All the settings values that are found are passed to the given callback.
 *
 * @note
 * This function does not call commit function.
 * It works as a blocking function, so it is up to the user to call
 * any kind of commit function when this operation ends.
 *
 * @param[in]     subtree subtree name of the subtree to be loaded.
 * @param[in]     cb      pointer to the callback function.
 * @param[in,out] param   parameter to be passed when callback
 *                        function is called.
 * @return 0 on success, non-zero on failure.
 */
int settings_load_subtree_direct(
	const char             *subtree,
	settings_load_direct_cb cb,
	void                   *param);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Leo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: It takes too long to read data using settings(Internal Flash).</title><link>https://devzone.nordicsemi.com/thread/545648?ContentTypeID=1</link><pubDate>Thu, 14 Aug 2025 10:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e12b456b-37fa-42d4-99e0-0883eca98de4</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Leo,&lt;/p&gt;
&lt;p&gt;Are you seeing the same thing when &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/nvs/README.html#nvs"&gt;running an official sample for this&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>