<?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 Unable to Read from Nand Flash in TWRK70f120M in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-Read-from-Nand-Flash-in-TWRK70f120M/m-p/316667#M13957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFB the code for Reading some of the parameters from Flash:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CWasherFormula *pPumpAMount=NULL;&lt;/P&gt;&lt;P&gt;    //for(BYTE byWasherId=0; byWasherId&amp;lt;MAX_WASHERS;byWasherId++)&lt;/P&gt;&lt;P&gt;    {&lt;/P&gt;&lt;P&gt;      //Location=0;&lt;/P&gt;&lt;P&gt;      //byBlockNum=(MAX_WASHERS*2)&lt;EM&gt;MAX_PUMPS&lt;/EM&gt;1+byWasherId;&lt;/P&gt;&lt;P&gt;      pPumpAMount=m_argpDataMgr-&amp;gt;GetWasherFormulaPtr(0);&lt;/P&gt;&lt;P&gt;      if(NULL!=pPumpAMount)&lt;/P&gt;&lt;P&gt;      {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Location=(m_dwNumOfVirtPagesPerBlock*(76));&lt;/P&gt;&lt;P&gt;        fseek(mpFlashPtr, Location, IO_SEEK_SET);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if(sizeof(CWasherFormula)==read(mpFlashPtr,pPumpAMount,sizeof(CWasherFormula)))&lt;/P&gt;&lt;P&gt;        {&lt;/P&gt;&lt;P&gt;          m_argpDataMgr-&amp;gt;SetWasherFormulaConfig(0,pPumpAMount);&lt;/P&gt;&lt;P&gt;          printf("Check ");&lt;/P&gt;&lt;P&gt;        }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the parameters into 76th block of Flash and reading it from the same block. But I find that the control doesn't get into the if block, which is why I am unable to set the data that is read. Kindly let me know how the issue can be resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sneha Hegde&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2014 12:52:12 GMT</pubDate>
    <dc:creator>snehahegde</dc:creator>
    <dc:date>2014-07-07T12:52:12Z</dc:date>
    <item>
      <title>Unable to Read from Nand Flash in TWRK70f120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-Read-from-Nand-Flash-in-TWRK70f120M/m-p/316667#M13957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFB the code for Reading some of the parameters from Flash:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CWasherFormula *pPumpAMount=NULL;&lt;/P&gt;&lt;P&gt;    //for(BYTE byWasherId=0; byWasherId&amp;lt;MAX_WASHERS;byWasherId++)&lt;/P&gt;&lt;P&gt;    {&lt;/P&gt;&lt;P&gt;      //Location=0;&lt;/P&gt;&lt;P&gt;      //byBlockNum=(MAX_WASHERS*2)&lt;EM&gt;MAX_PUMPS&lt;/EM&gt;1+byWasherId;&lt;/P&gt;&lt;P&gt;      pPumpAMount=m_argpDataMgr-&amp;gt;GetWasherFormulaPtr(0);&lt;/P&gt;&lt;P&gt;      if(NULL!=pPumpAMount)&lt;/P&gt;&lt;P&gt;      {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Location=(m_dwNumOfVirtPagesPerBlock*(76));&lt;/P&gt;&lt;P&gt;        fseek(mpFlashPtr, Location, IO_SEEK_SET);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if(sizeof(CWasherFormula)==read(mpFlashPtr,pPumpAMount,sizeof(CWasherFormula)))&lt;/P&gt;&lt;P&gt;        {&lt;/P&gt;&lt;P&gt;          m_argpDataMgr-&amp;gt;SetWasherFormulaConfig(0,pPumpAMount);&lt;/P&gt;&lt;P&gt;          printf("Check ");&lt;/P&gt;&lt;P&gt;        }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the parameters into 76th block of Flash and reading it from the same block. But I find that the control doesn't get into the if block, which is why I am unable to set the data that is read. Kindly let me know how the issue can be resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sneha Hegde&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 12:52:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-Read-from-Nand-Flash-in-TWRK70f120M/m-p/316667#M13957</guid>
      <dc:creator>snehahegde</dc:creator>
      <dc:date>2014-07-07T12:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Read from Nand Flash in TWRK70f120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-Read-from-Nand-Flash-in-TWRK70f120M/m-p/316668#M13958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sneha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find attached an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 19:36:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-Read-from-Nand-Flash-in-TWRK70f120M/m-p/316668#M13958</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2014-07-09T19:36:30Z</dc:date>
    </item>
  </channel>
</rss>

