<?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>topic Re: Memory Questions in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538181#M5877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Clovis on Tue Jul 24 10:46:44 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't have to save a lot of data but just a few KiB, and if you don't have to save them constantly but once in a while, you may consider writing in the flash memory of LPC1343 using IAP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not the most neat solution, but it has no-hardware cost.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check this out&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.lpcware.com/content/nxpfile/an11008-flash-based-non-volatile-storage-software&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:45:12 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:45:12Z</dc:date>
    <item>
      <title>Memory Questions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538178#M5874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ub3r on Tue Jul 24 08:55:19 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Im using the ADC to measure current and MA/hrs on a solar panel, and i want to store the peak currents, and A/hrs after reboot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whats the easiest way to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My understanding is the LPC1343 doesnt have internal eeprom, so is there any example code of how to use the onboard flash to store variables? Or do i have to use external eeprom?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538178#M5874</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Questions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538179#M5875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Jul 24 09:11:06 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Store it in your RTC chip: MCP79410 :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See: &lt;/SPAN&gt;&lt;A href="http://"&gt;http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en550280&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538179#M5875</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Questions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538180#M5876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ex-kayoda on Tue Jul 24 10:18:30 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I like this 24AA08 &lt;/SPAN&gt;&lt;A href="http://"&gt;http://ww1.microchip.com/downloads/en/devicedoc/21710c.pdf&lt;/A&gt;&lt;SPAN&gt; :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SOT-23-5, 2 pullups as 402 and no problems with reprogramming my chip. Data are save in external storage :rolleyes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hardware costs: ~0.30 Euro :eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538180#M5876</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Questions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538181#M5877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Clovis on Tue Jul 24 10:46:44 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't have to save a lot of data but just a few KiB, and if you don't have to save them constantly but once in a while, you may consider writing in the flash memory of LPC1343 using IAP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not the most neat solution, but it has no-hardware cost.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check this out&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.lpcware.com/content/nxpfile/an11008-flash-based-non-volatile-storage-software&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538181#M5877</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Questions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538182#M5878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ub3r on Tue Jul 24 17:46:57 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks guys im loving this community more and more. :D&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Im going to try and implement the flash based solution, if it doesnt work, ill use an i2c eeprom.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538182#M5878</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Questions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538183#M5879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by frame on Wed Jul 25 00:18:07 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That depends on your requirements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My company implemented such an algorithm in a commercial device, that used several Flash blocks in ping-pong mode&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(i.e. filling one block successively and erasing the next ahead; and so on, in a turn-around mode).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As the data saving happened after power off while the device was living from a capacitor charge,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and the date were crucial, the implementation was quite complex and included error checking&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and recovery from failed block writes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This part of code was the reason for several field returns ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have no timing constraints, I would suggest a simple two-block mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At a write event, erase the last used, and write to the other.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When including some low-1-count signature bytes in your data block (like 0x00),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you have no problems to detect which block was used lastly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538183#M5879</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Questions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538184#M5880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Europe on Wed Jul 25 03:54:19 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi ub3r,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Data can be saved within the interrupt of the BOD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Be sure that you have time enough to do so, by using larger capacitors.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538184#M5880</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Questions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538185#M5881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by frame on Wed Jul 25 06:28:38 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Data can be saved within the interrupt of the BOD.&lt;BR /&gt; &lt;BR /&gt;Be sure that you have time enough to do so, by using larger capacitors.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Could you explain this in some more detail ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For systems I know, a brown out happens rather late, when capacitors almost empty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As second point,&amp;nbsp; I would avoid writng to Flash under tight time and energy constraints. A write may involve an erase,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;adding some hundred milleseconds to finish. And to be clear, Flash erase/write consumes a significantl current.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When erasing and programming, charge pump boosters are started to create a voltage of 9..12V internally, required to get&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a charge on the isolated gate. I have measured this for a 8 bit controller, which was drawing about 300% of the normal current&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in this case (3mA/10mA).&amp;nbsp; In relation, it would be less dramatic for a M3, but can't be ignored when running on cap charges.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Memory-Questions/m-p/538185#M5881</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:14Z</dc:date>
    </item>
  </channel>
</rss>

