<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPCXpresso IDEのトピックNHS3100 mods : storage</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/NHS3100-mods-storage/m-p/1241790#M33280</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm trying to store data in EEPROM and i found the mod &lt;STRONG&gt;storage&lt;/STRONG&gt; which look convenient to use.&lt;/P&gt;&lt;P&gt;I have few questions about this :&lt;/P&gt;&lt;P&gt;- If i want to reset the counter of Storage_GetCount() and the index, should i have to do a Storage_Reset(false) ?&lt;/P&gt;&lt;P&gt;- I want to store signed data but in the function Storage_Write in storage.c it accept only unit8_t should i change STORAGE_SIGNED and STORAGE_TYPE ? (if i do this i still have an warning of argument differ in signedness)&lt;/P&gt;&lt;P&gt;I would be grateful if you could help me,&lt;/P&gt;&lt;P&gt;thank you for your time and yours answers,&lt;/P&gt;&lt;P&gt;Yvan&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 14:07:47 GMT</pubDate>
    <dc:creator>SnoZek</dc:creator>
    <dc:date>2021-03-08T14:07:47Z</dc:date>
    <item>
      <title>NHS3100 mods : storage</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/NHS3100-mods-storage/m-p/1241790#M33280</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm trying to store data in EEPROM and i found the mod &lt;STRONG&gt;storage&lt;/STRONG&gt; which look convenient to use.&lt;/P&gt;&lt;P&gt;I have few questions about this :&lt;/P&gt;&lt;P&gt;- If i want to reset the counter of Storage_GetCount() and the index, should i have to do a Storage_Reset(false) ?&lt;/P&gt;&lt;P&gt;- I want to store signed data but in the function Storage_Write in storage.c it accept only unit8_t should i change STORAGE_SIGNED and STORAGE_TYPE ? (if i do this i still have an warning of argument differ in signedness)&lt;/P&gt;&lt;P&gt;I would be grateful if you could help me,&lt;/P&gt;&lt;P&gt;thank you for your time and yours answers,&lt;/P&gt;&lt;P&gt;Yvan&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 14:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/NHS3100-mods-storage/m-p/1241790#M33280</guid>
      <dc:creator>SnoZek</dc:creator>
      <dc:date>2021-03-08T14:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: NHS3100 mods : storage</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/NHS3100-mods-storage/m-p/1243971#M33282</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you can use the storage module for this.&lt;/P&gt;
&lt;P&gt;The only way to clear the old data and start anew is by calling&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;Storage_Reset&lt;/FONT&gt;. If you're sure never to use flash, you can set &lt;FONT face="courier new,courier"&gt;bool&amp;nbsp;checkFlash&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;false&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The storage module is influenced at compile time by defines that you add to your applications &lt;FONT face="courier new,courier"&gt;app_sel.h&lt;/FONT&gt; header file. There is normally never a need to change any code in &lt;FONT face="courier new,courier"&gt;storage.c&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;storage.h&lt;/FONT&gt; and&amp;nbsp;&lt;FONT face="courier new,courier"&gt;storage_dft.h&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;The demo application&amp;nbsp;app_demo_dp_tlogger stores signed data - temperatures - using the storage module. These defines should do the trick:&lt;/P&gt;
&lt;PRE&gt;#define STORAGE_TYPE int16_t /* or whatever signed type you need */&lt;BR /&gt;#define STORAGE_SIGNED 1&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also want to set the size of one sample, to avoid storing bits that are never used:&lt;/P&gt;
&lt;PRE&gt;#define STORAGE_BITSIZE 11&lt;/PRE&gt;
&lt;P&gt;After that, there should be no warnings when building. If you still see them, can you post your changes and your warning here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;BR /&gt;Dries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 07:59:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/NHS3100-mods-storage/m-p/1243971#M33282</guid>
      <dc:creator>driesmoors</dc:creator>
      <dc:date>2021-03-11T07:59:43Z</dc:date>
    </item>
  </channel>
</rss>

