<?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>FDS_ERR_NOT_FOUND issue of yps_storage_find in sdk 14.0.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29876/fds_err_not_found-issue-of-yps_storage_find-in-sdk-14-0-1</link><description>Hello, 
 I implemented overall flow related with FDS function including garbage collection,
when I check garbage collection, it is ok, it confirm that the data will be saved with writing or updating function in event handler, please refer the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Feb 2018 15:34:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29876/fds_err_not_found-issue-of-yps_storage_find-in-sdk-14-0-1" /><item><title>RE: FDS_ERR_NOT_FOUND issue of yps_storage_find in sdk 14.0.1</title><link>https://devzone.nordicsemi.com/thread/119574?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2018 15:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:560149f3-955b-4d49-b474-0bbec0ebaf97</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You can check the start and end address used by Fstorage by putting breakpoint&amp;nbsp;in&amp;nbsp;flash_bounds_set() in fds.c. If you have a bootloader&amp;nbsp;flash_end_addr() will account for that and use the flash pages below. The SDK examples typically reserves 3 flash pages.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;DFU_APP_DATA_RESERVED determines how many flash pages below the bootloader that will be reserved (not erased when doing DFU). This should match the number of pages used by Fstorage, typically 3.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS_ERR_NOT_FOUND issue of yps_storage_find in sdk 14.0.1</title><link>https://devzone.nordicsemi.com/thread/119528?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2018 12:30:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b23699a6-ce26-496b-b717-1e71f9aef21e</guid><dc:creator>edmond.yun</dc:creator><description>&lt;p&gt;Hi, Petter,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;sorry for any confusion, I confused this agenda with other...sorry...&lt;/p&gt;
&lt;p&gt;for only this agenda, currently I am not using for delete_record function,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;instead, I confirmed the size of memory by using&amp;nbsp;&amp;nbsp;&lt;span&gt;DFU_APP_DATA_RESERVED, it can be defined by user in sdk_config.h... and it is related with the region of app data, when verifying by myself, the data can kept in the region of app data(maybe) after doing DFU... I tried to verify for many times by firstly writing some data with field value, after that, I tried to read the data with the same field data by using fds function(not fstorage function). so I learned that if can confirm the size of necessary data with&amp;nbsp;DFU_APP_DATA_RESERVED&amp;nbsp;in the region of app data (maybe, I am&amp;#39;not sure that the region of DFU_APP_DATA_RESERVED&amp;nbsp; is the region of app data),&amp;nbsp; I don&amp;#39;t need to delete the record every time (when writing new data in the same field) because new data will be updated (not written) by update_fds function.. is it right ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;so currently I can&amp;#39;t find the error related with find function because I am not using delete_record_fds function. how about my usage ? is it right for mass production ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;please help to let me have the confirmation about my code...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thankful for your support in advance,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS_ERR_NOT_FOUND issue of yps_storage_find in sdk 14.0.1</title><link>https://devzone.nordicsemi.com/thread/119522?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2018 12:10:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d83befa1-833a-45aa-b639-3e2e91c20816</guid><dc:creator>edmond.yun</dc:creator><description>&lt;p&gt;Hi, Petter,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am&amp;nbsp; very thankful for your care and concern, I need to really use fstorage with exact information,&lt;/p&gt;
&lt;p&gt;I will explain what I know for the function, please refer below,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. I searched for app data, I can keep user data in the region of memory map and I can allocate the size of the memory with&amp;nbsp;&lt;span&gt;DFU_APP_DATA_RESERVED in sdk_config.h...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;you can find more information in site of nordic development description like api description so on....&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;I need to keep the user data with fstorage in the region of app data memory, it is a fundamental question for this agenda.... How can I confirm the usage of app data memory with fstorage ? how can define the address of start/end ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the data should be kept after doing dfu...it is also important for mass-production, please refer it,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;please help to provide the useful example of fstorage by modifying my code,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thankful for your support in advance,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS_ERR_NOT_FOUND issue of yps_storage_find in sdk 14.0.1</title><link>https://devzone.nordicsemi.com/thread/119505?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2018 11:19:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54a0e499-a660-4cc8-bd36-17eff92309e5</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, I don&amp;#39;t understand. What does&amp;nbsp;&lt;span&gt;DFU_APP_DATA_RESERVED have to do with this? Do you still have a problem? If you do, could you try to clearly explain what it is?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS_ERR_NOT_FOUND issue of yps_storage_find in sdk 14.0.1</title><link>https://devzone.nordicsemi.com/thread/119456?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2018 01:31:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f54e7ff-d336-4708-b408-6edaf1a7bc0a</guid><dc:creator>edmond.yun</dc:creator><description>&lt;p&gt;Hi, Petter Myhre,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I refer your guide, and understand the reason that the FDS_ERR_NOT_FOUND error is happened,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;after deleting record repeatedly&amp;nbsp;and if trying to read and write data, maybe the fds management system can have the timing issue... so I think that if only using to update data (not using deleting record), the issue is not happened, but need to confirm the necessary memory with&amp;nbsp;&lt;span&gt;DFU_APP_DATA_RESERVED&amp;nbsp;in sdk_config.h... is it right ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;if the size of data is not over to the memory, most errors are not happened...is it right ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;if I have mis-understanding, please help to provide the perfect example to use for mass-production,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;when I check the example of sdk 14.1.0, it is not enough to use for production,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ex) if failing to update or write data, the handler that received the result need to try the behavior again after checking result...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thankful for your support in advance, (can see the case with&amp;nbsp;FDS_EVT_GC in the attached code).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS_ERR_NOT_FOUND issue of yps_storage_find in sdk 14.0.1</title><link>https://devzone.nordicsemi.com/thread/118786?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 11:39:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdf1d62c-29a6-4221-a08c-26724d546e50</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You should always check the returned errors, but not all errors are unrecoverable. I&amp;#39;m not sure why you wouldn&amp;#39;t check the error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS_ERR_NOT_FOUND issue of yps_storage_find in sdk 14.0.1</title><link>https://devzone.nordicsemi.com/thread/118784?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2018 02:57:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:656977de-c7e1-45ee-9c68-0412b463c0d6</guid><dc:creator>edmond.yun</dc:creator><description>&lt;p&gt;Hi, Petter,&lt;/p&gt;
&lt;p&gt;I refer your guide, when trying to do more test, if trying to read the data after some time (after writing data), I can read/write correctly, the error is not happened, so I think that if trying to read the data as soon as writing the data, this kind of error is not happened, if so, I don&amp;#39;t need to check the error,
how about your opinion as to this situation ? I would like know your opinion,
if current situation is no problem, I will use above code, no modification,&lt;/p&gt;
&lt;p&gt;thankful for your kindness in advance,
thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS_ERR_NOT_FOUND issue of yps_storage_find in sdk 14.0.1</title><link>https://devzone.nordicsemi.com/thread/118783?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2018 08:56:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:809e22d0-69b0-4ea7-ab6b-1f66f4265d70</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You should always wait for the completion event before assuming that the operation is complete. Always.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS_ERR_NOT_FOUND issue of yps_storage_find in sdk 14.0.1</title><link>https://devzone.nordicsemi.com/thread/118782?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2018 00:38:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e88c4b3c-682c-4005-a902-e6f29fc483d8</guid><dc:creator>edmond.yun</dc:creator><description>&lt;p&gt;according to your description, if the data is stored in the communication flow (by handler) of BLE, this kind of issue can&amp;#39;t be happened in most cases, currently I test by instant writing and reading, so this issue can be happened, is it right ? I wonder whether I should check the completion of writing in normal usage(ble communication), thankful for your kindness in advance, thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS_ERR_NOT_FOUND issue of yps_storage_find in sdk 14.0.1</title><link>https://devzone.nordicsemi.com/thread/118781?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2018 13:22:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc6bdbee-9883-493a-aaf1-85a8dc98f5e2</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Yes, you should wait for the FDS_EVT_WRITE event in the handler before assuming that the record is written. Before you get the event, you don&amp;#39;t know if the record has been written or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS_ERR_NOT_FOUND issue of yps_storage_find in sdk 14.0.1</title><link>https://devzone.nordicsemi.com/thread/118785?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2018 13:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47162bf2-6237-4ff1-9859-4cb378fbbab3</guid><dc:creator>edmond.yun</dc:creator><description>&lt;p&gt;Hi, Petter,&lt;/p&gt;
&lt;p&gt;firstly, thankful for rapid response, I worried that the error is happened in the timing of read trial,
even though fds_record_find function return the error,
what I mean is that when I would like to read the stored data(by fds_record_write funtion), the stored data can&amp;#39;t be normally print out by yps_storage_read function, you can see the log,&lt;/p&gt;
&lt;p&gt;yps_storage_find not found 0x1111 0x3333&lt;/p&gt;
&lt;p&gt;fds_record_write : 0 245&lt;/p&gt;
&lt;p&gt;yps_storage_read not found 0xEvent: FDS_EVT_WRITE received (FDS_SUCCESS)&lt;/p&gt;
&lt;p&gt;first line is different from third line, I wonder why the error is happened in yps_storage_read function,
the timing is that fds_record_write  was already done,
anyway as a result, I can&amp;#39;t read the stored data when I would like to check it, it is a problem,&lt;/p&gt;
&lt;p&gt;please help  to let me know whether it is really a problem or not kindly,&lt;/p&gt;
&lt;p&gt;thankful for your support in advance,&lt;/p&gt;
&lt;p&gt;ref) Should I check the completion as to writing in event handler ? and then I should try to read the stored data, is it right ? Please help to let me know good idea,&lt;/p&gt;
&lt;p&gt;thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS_ERR_NOT_FOUND issue of yps_storage_find in sdk 14.0.1</title><link>https://devzone.nordicsemi.com/thread/118780?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2018 11:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:693788a5-34f5-4810-a7d0-d7909e4ab402</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I don&amp;#39;t quite understand what the problem is. Do you not expect to get FDS_ERR_NOT_FOUND after you have deleted the record? Could you please clarify what the problem is?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>