<?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>MPC5xxx中的主题 MPC5674f Flash write</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5674f-Flash-write/m-p/678701#M8065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am currently working with a MPC5674f based board. &lt;BR /&gt;I am trying to write to a flash memory block.&lt;BR /&gt;The code that writes to the flash memory is also in the same flash , but in a different memory block.&lt;BR /&gt;I've been reading the reference manual and concluded that the only way to that would be throught the FLASH CONFIGURATION REGISTER(located 0xC3F8800) described in chapter 11.2.1 of the &lt;A href="http://cache.freescale.com/files/32bit/doc/ref_manual/MPC5674FRM.pdf"&gt;reference manua&lt;/A&gt;l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is I can't seen to write to these registers(Can only read then).&lt;/P&gt;&lt;P&gt;Is there any locking mechanism preventing me to do so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the sample clode used to write in one of the configuration registers.&lt;/P&gt;&lt;P&gt;&amp;nbsp; os_uintptr_t* mcr&amp;nbsp; = (os_uintptr_t*)0xC3F88000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; printf("mcr = 0x0%x\n",*mcr);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *mcr = *mcr | 0x20000000;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //ERS&lt;BR /&gt;&amp;nbsp;&amp;nbsp; printf("mcr = 0x0%x\n",*mcr);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2017 17:31:42 GMT</pubDate>
    <dc:creator>mayconkruger</dc:creator>
    <dc:date>2017-06-29T17:31:42Z</dc:date>
    <item>
      <title>MPC5674f Flash write</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5674f-Flash-write/m-p/678701#M8065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am currently working with a MPC5674f based board. &lt;BR /&gt;I am trying to write to a flash memory block.&lt;BR /&gt;The code that writes to the flash memory is also in the same flash , but in a different memory block.&lt;BR /&gt;I've been reading the reference manual and concluded that the only way to that would be throught the FLASH CONFIGURATION REGISTER(located 0xC3F8800) described in chapter 11.2.1 of the &lt;A href="http://cache.freescale.com/files/32bit/doc/ref_manual/MPC5674FRM.pdf"&gt;reference manua&lt;/A&gt;l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is I can't seen to write to these registers(Can only read then).&lt;/P&gt;&lt;P&gt;Is there any locking mechanism preventing me to do so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the sample clode used to write in one of the configuration registers.&lt;/P&gt;&lt;P&gt;&amp;nbsp; os_uintptr_t* mcr&amp;nbsp; = (os_uintptr_t*)0xC3F88000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; printf("mcr = 0x0%x\n",*mcr);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *mcr = *mcr | 0x20000000;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //ERS&lt;BR /&gt;&amp;nbsp;&amp;nbsp; printf("mcr = 0x0%x\n",*mcr);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 17:31:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5674f-Flash-write/m-p/678701#M8065</guid>
      <dc:creator>mayconkruger</dc:creator>
      <dc:date>2017-06-29T17:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5674f Flash write</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5674f-Flash-write/m-p/678702#M8066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I would recommend to see one of following example code&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-329440"&gt;Example MPC5675K Data_flash_program_simple CW210&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-101849"&gt;Example MPC5643L Flash_program_simple CW210&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though it was written for different device, principle of flash programming is the same. In both cases pay attention to main file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you may use SSD driver from the same place I have just pointed out to someone here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/454511"&gt;Flash and EEPROM DRIVERS mpc5644a&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 18:40:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5674f-Flash-write/m-p/678702#M8066</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2017-06-29T18:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5674f Flash write</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5674f-Flash-write/m-p/678703#M8067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks David,&lt;/P&gt;&lt;P&gt;I was missing the step where you have to write the password to the flash lock register.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:37:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5674f-Flash-write/m-p/678703#M8067</guid>
      <dc:creator>mayconkruger</dc:creator>
      <dc:date>2017-06-29T19:37:41Z</dc:date>
    </item>
  </channel>
</rss>

