<?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: how to read and write EEPROM in S32R274 in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/how-to-read-and-write-EEPROM-in-S32R274/m-p/870015#M12801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply, It is very help for me, Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2019 01:22:46 GMT</pubDate>
    <dc:creator>bhtybyb</dc:creator>
    <dc:date>2019-03-14T01:22:46Z</dc:date>
    <item>
      <title>how to read and write EEPROM in S32R274</title>
      <link>https://community.nxp.com/t5/MPC5xxx/how-to-read-and-write-EEPROM-in-S32R274/m-p/870012#M12798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello, there are some questions about how to use EEPROM in S32R274,&lt;/P&gt;&lt;P&gt;accroding to S32R274 Datasheet,I think I can rease and programe EEPROM,but how to read what I wirte?&lt;/P&gt;&lt;P&gt;I will appreciate for your answer.&lt;/P&gt;&lt;P&gt;next is my program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Unlock mid block 0x00FB_8000 - 0x00FB_FFFF */&lt;BR /&gt; C55FMC.LOCK0.R &amp;amp;= 0xFFFFFDFF;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /* Erase the mid block */&lt;BR /&gt; C55FMC.MCR.B.ERS = 1;&lt;BR /&gt; C55FMC.SEL0.R = 0x00000200; /* Select the mid block */&lt;BR /&gt; *(unsigned int*)0x00FB8000 = 0xFFFFFFFF; /* Interlock write */&lt;BR /&gt; *(unsigned int*)0x00FB8004 = 0xFFFFFFFF;&lt;BR /&gt; *(unsigned int*)0x00FB8008 = 0xFFFFFFFF;&lt;BR /&gt; *(unsigned int*)0x00FB800C = 0xFFFFFFFF;&lt;BR /&gt; *(unsigned int*)0x00FB8010 = 0xFFFFFFFF;&lt;BR /&gt; *(unsigned int*)0x00FB8014 = 0xFFFFFFFF;&lt;BR /&gt; *(unsigned int*)0x00FB8018 = 0xFFFFFFFF;&lt;BR /&gt; *(unsigned int*)0x00FB801C = 0xFFFFFFFF;&lt;BR /&gt; C55FMC.MCR.B.EHV = 1;&lt;BR /&gt; while(C55FMC.MCR.B.DONE == 0);&lt;BR /&gt; C55FMC.MCR.B.EHV = 0;&lt;BR /&gt; C55FMC.MCR.B.ERS = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Program one page in the mid block */&lt;BR /&gt; C55FMC.MCR.B.PGM = 1;&lt;BR /&gt; *(unsigned int*)0x00FB8000 = 0x11111111; /* Interlock write */&lt;BR /&gt; *(unsigned int*)0x00FB8004 = 0x22222222; /* Up to 8 words (one 256bit page) can be programmed at once */&lt;BR /&gt; *(unsigned int*)0x00FB8008 = 0x33333333;&lt;BR /&gt; *(unsigned int*)0x00FB800C = 0x44444444;&lt;BR /&gt; *(unsigned int*)0x00FB8010 = 0x55555555;&lt;BR /&gt; *(unsigned int*)0x00FB8014 = 0x66666666;&lt;BR /&gt; *(unsigned int*)0x00FB8018 = 0x77777777;&lt;BR /&gt; *(unsigned int*)0x00FB801C = 0x88888888;&lt;BR /&gt; C55FMC.MCR.B.EHV = 1;&lt;BR /&gt; while(C55FMC.MCR.B.DONE == 0);&lt;BR /&gt; C55FMC.MCR.B.EHV = 0;&lt;BR /&gt; C55FMC.MCR.B.PGM = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*read*/&lt;BR /&gt; uint8_t ansa = (*(unsigned int*)0x00FB8000)&amp;gt;&amp;gt;24;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 03:13:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/how-to-read-and-write-EEPROM-in-S32R274/m-p/870012#M12798</guid>
      <dc:creator>bhtybyb</dc:creator>
      <dc:date>2019-03-06T03:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to read and write EEPROM in S32R274</title>
      <link>https://community.nxp.com/t5/MPC5xxx/how-to-read-and-write-EEPROM-in-S32R274/m-p/870013#M12799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the answer of read always is 0XFF.so where am I wrong .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 03:15:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/how-to-read-and-write-EEPROM-in-S32R274/m-p/870013#M12799</guid>
      <dc:creator>bhtybyb</dc:creator>
      <dc:date>2019-03-06T03:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to read and write EEPROM in S32R274</title>
      <link>https://community.nxp.com/t5/MPC5xxx/how-to-read-and-write-EEPROM-in-S32R274/m-p/870014#M12800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you use wrong bit for unlocking and wrong bit for selection of block for erase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's attached file S32R274_Flash_Block_Assignment_Rev7.xlx inside the reference manual. Open it and see tabs "NVM" and then "Lock Register Def.". You will see that address 0xFB8000 belongs to Block 3 and it's bit 3 in LOCK0 and in SEL0. You should write 0xFFFFFFF7 to LOCK0 and 0x8 to SEL0.&lt;/P&gt;&lt;P&gt;Then it will work as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 14:11:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/how-to-read-and-write-EEPROM-in-S32R274/m-p/870014#M12800</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-03-13T14:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to read and write EEPROM in S32R274</title>
      <link>https://community.nxp.com/t5/MPC5xxx/how-to-read-and-write-EEPROM-in-S32R274/m-p/870015#M12801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply, It is very help for me, Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 01:22:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/how-to-read-and-write-EEPROM-in-S32R274/m-p/870015#M12801</guid>
      <dc:creator>bhtybyb</dc:creator>
      <dc:date>2019-03-14T01:22:46Z</dc:date>
    </item>
  </channel>
</rss>

