<?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中的主题 Re: MPC5634M Flash erase Problem</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613398#M5083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;otherwise ,I&amp;nbsp;use&amp;nbsp; the following c_array:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="QQ图片20170305001344.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14726iA2070C040AC3A399/image-size/large?v=v2&amp;amp;px=999" role="button" title="QQ图片20170305001344.jpg" alt="QQ图片20170305001344.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't know what's the root cause ,and what about you ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Mar 2017 16:18:15 GMT</pubDate>
    <dc:creator>dennisyuan</dc:creator>
    <dc:date>2017-03-04T16:18:15Z</dc:date>
    <item>
      <title>MPC5634M Flash erase Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613395#M5080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Hi ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;There's&amp;nbsp;&amp;nbsp;a problem about the&amp;nbsp;MPC5634M Flash erase blocks in my&amp;nbsp;MPC5634M project. I have integrated the SSD flash driver which is :Standard Software Driver v1.0.3 (xPC56xx_C90LC) in my code ,and the program&amp;nbsp;&lt;SPAN style="color: #434343; background-color: #f2f2f2;"&gt;running process is: &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #434343; font-size: 15px;"&gt;(1)Firstly ,erase the block 2 (address ;0x00008000),then write 96 bytes from address&amp;nbsp;0x00008000 ,write success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #434343; font-size: 15px;"&gt;(2)secondly,erase the block 3&amp;nbsp;(address ;0x00010000),then write &amp;nbsp;from address&amp;nbsp;0x00010000 ,write success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #434343; font-size: 15px;"&gt;(3)I want to&amp;nbsp;&lt;SPAN style="background-color: #f2f2f2;"&gt;erase the block 2 (address ;0x00008000),and&amp;nbsp;write 96 bytes from address&amp;nbsp;0x00008000&amp;nbsp;again &amp;nbsp; ,the erase result&amp;nbsp;&amp;nbsp;seems is ok ,but I feel this erase operation is fail.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #434343; font-size: 15px;"&gt;This fail case is : the return value of the Erase &amp;nbsp;function is C90FL_OK ,but actually the block 2 which I want to erase &amp;nbsp;is not erased . that means the last value still in the block 2. the all value didn't change to 0xFF .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #434343; font-size: 15px;"&gt; I use the API is C-array&amp;nbsp;FlashErase_C, which in the path :&amp;nbsp;Freescale\Standard Software Driver v1.0.3\xPC56xx_C90LC\Driver\cw\vle\c-array_driver &amp;nbsp;,and the call function like this :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #434343; font-weight: bold; font-size: 12px;"&gt;&lt;SPAN style="background-color: #f2f2f2;"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16780i9DEF4E435887AB4B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #434343; font-weight: bold; font-size: 12px;"&gt;&lt;SPAN style="background-color: #f2f2f2;"&gt;&lt;SPAN&gt;and the debug register I can see the block is unlock correct :&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #434343; font-weight: bold; font-size: 12px;"&gt;&lt;SPAN style="background-color: #f2f2f2;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #434343; font-weight: bold; font-size: 12px;"&gt;&lt;SPAN style="background-color: #f2f2f2;"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16822i17D46FCD043DDDBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #434343; font-size: 15px;"&gt;after executed the erase operation ,the&amp;nbsp;returnCode is&amp;nbsp;C90FL_OK ,but in the flash block 2 ,the value didn't be erased.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #434343; font-size: 15px;"&gt;so I have 4&amp;nbsp;question about this case :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #434343; font-size: 15px;"&gt;1.whether the SSD C-array&amp;nbsp;FlashErase_C which I used is right ? what's the difference in&amp;nbsp;BookE and&amp;nbsp;vle.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #434343; font-size: 15px;"&gt;2.The&amp;nbsp;parameter like shadowFlag,&amp;nbsp;lowEnabledBlocks,&amp;nbsp;midEnabledBlocks,&amp;nbsp;highEnabledBlocks of the function ,is &amp;nbsp;it correct ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #434343; font-size: 15px;"&gt;pFlashErase( &amp;amp;ssdConfig, shadowFlag, lowEnabledBlocks, midEnabledBlocks, highEnabledBlocks, (tpfNullCallback)NULL_CALLBACK );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="color: #434343; background-color: #f2f2f2; border: 0px; font-size: 1.16em;"&gt;&lt;SPAN style="font-size: 15px;"&gt;3.&lt;SPAN style="font-weight: normal;"&gt;What circumstances will appear this kind of failure?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: normal; font-size: 15px;"&gt;4.what do you have some suggestion to me ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 09:37:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613395#M5080</guid>
      <dc:creator>dennisyuan</dc:creator>
      <dc:date>2017-03-02T09:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Flash erase Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613396#M5081</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;do not write to ssdConfig like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15111i2E8BADF16DB0ED64/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During initialization phase, you are supposed to initialize the ssdConfig in this way (copied from demo code):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* CFlash */&lt;BR /&gt;SSD_CONFIG ssdConfig = {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C_REG_BASE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Flash control register base */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C_ARRAY_BASE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* base of main array */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* size of main array */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHADOW_ROW_BASE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* base of shadow row */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHADOW_ROW_SIZE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* size of shadow row */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* block number in low address space */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* block number in middle address space */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* block number in high address space */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C90FL_PAGE_SIZE_08,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* flash page size selection */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FALSE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* debug mode selection */&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's mentioned in user manual:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15154i87254C115E6CD21D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then call FlashInit(). This function will read the flash configuration information from flash registers and it will initialize the rest of the parameters: mainArraySize, lowBlockNum, midBlockNum and highBlockNum.&lt;/P&gt;&lt;P&gt;You are not supposed to modify the ssdConfig anymore.&lt;/P&gt;&lt;P&gt;Then it should work.&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>Fri, 03 Mar 2017 13:15:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613396#M5081</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-03-03T13:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Flash erase Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613397#M5082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Hi Lukas,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #434343; font-size: 15px; background-color: #f2f2f2;"&gt;I tried it on in accordance with your method,but still failed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #434343; font-size: 15px; background-color: #f2f2f2;"&gt;Following is my change point :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #434343; font-size: 15px; background-color: #f2f2f2;"&gt;1. I have changed the&amp;nbsp;SHADOW_ROW_BASE to 0x00FFC000 and&amp;nbsp;SHADOW_ROW_SIZE to 0x00004000 follow the MPC5634M datasheet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #434343; background-color: #f2f2f2; font-size: 12px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14717i9F4A5303BAA7AD09/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #434343; background-color: #f2f2f2; font-size: 12px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14769iB0BEC61A60A6EC5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #434343; background-color: #f2f2f2; font-size: 12px;"&gt;2. Remove the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 15px;"&gt;ssdConfig information ,and set the&amp;nbsp;&lt;SPAN class=""&gt; &lt;/SPAN&gt;lowEnabledBlocks = 0x00000004uL;because I want to erase the block 1b(base address is 0x00008000) .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #ff0000; font-size: 15px;"&gt;There is a problem :when&amp;nbsp;set the&amp;nbsp;&lt;SPAN class=""&gt; &lt;/SPAN&gt;lowEnabledBlocks = 0x00000004uL, the erase function&amp;nbsp;pFlashErase will run away .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #ff0000; font-size: 15px;"&gt;but I set the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;lowEnabledBlocks = 0x00000002uL, the erase function&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;pFlashErase will return&amp;nbsp;C90FL_OK, but still can't erase success &amp;nbsp;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #434343; background-color: #f2f2f2; font-size: 12px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14816iC17E5B7DAC19E3AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f2f2f2; color: #ff0000; font-weight: bold; font-size: 15px;"&gt;From the above ,I am confused what value &amp;nbsp;should set about the&amp;nbsp;&lt;SPAN style="font-weight: normal; background-color: #ffffff;"&gt;lowEnabledBlocks &amp;nbsp;parameter ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-weight: normal; font-size: 15px;"&gt;I check the MPC5634M manual ,there is a example :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-weight: normal; font-size: 15px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_13.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14866iBB56B435227FACE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_13.png" alt="pastedImage_13.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-weight: normal; font-size: 15px;"&gt;the example erase blocks 2a and 1b ,the LMS=0x00000006;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-weight: normal; font-size: 15px;"&gt;but form the LMS register description if erase the blocks 2a and 1b,the LMS Should be equal to &amp;nbsp;0x0000000C.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-weight: normal; font-size: 15px;"&gt;is it right about my understanding ?&lt;/SPAN&gt;&lt;/P&gt;&lt;H2 style="background-color: #f2f2f2; border: 0px; font-size: 1.16em;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_16.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14940iF2F76518192020A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_16.png" alt="pastedImage_16.png" /&gt;&lt;/span&gt;&lt;/H2&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2017 07:09:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613397#M5082</guid>
      <dc:creator>dennisyuan</dc:creator>
      <dc:date>2017-03-04T07:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Flash erase Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613398#M5083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;otherwise ,I&amp;nbsp;use&amp;nbsp; the following c_array:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="QQ图片20170305001344.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14726iA2070C040AC3A399/image-size/large?v=v2&amp;amp;px=999" role="button" title="QQ图片20170305001344.jpg" alt="QQ图片20170305001344.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't know what's the root cause ,and what about you ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2017 16:18:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613398#M5083</guid>
      <dc:creator>dennisyuan</dc:creator>
      <dc:date>2017-03-04T16:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Flash erase Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613399#M5084</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;where the code is running from? Notice that Read-While-Write is supported only between banks. For example, if you want to erase or program bank 0, the code must be executed either from bank1 or from RAM. That could be the reason.&lt;/P&gt;&lt;P&gt;Next thing - there are three flash arrays. If you want to program all of them, you need three instances of ssdConfig. Take a look at attached code. Notice that this example must be executed from RAM because it erase/program all arrays for test purposes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To erase block 0, you need to set lowEnabledBlocks = 1;&lt;/P&gt;&lt;P&gt;To erase block 1a, you need to set lowEnabledBlocks = 2;&lt;/P&gt;&lt;P&gt;To erase block 1b, you need to set lowEnabledBlocks = 4;&lt;/P&gt;&lt;P&gt;To erase all these blocks, you need to set lowEnabledBlocks = 7;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a good point - there seems to be a typo in Example 10-2. I agree, there should be 0xC.&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>Mon, 06 Mar 2017 09:35:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613399#M5084</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-03-06T09:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Flash erase Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613400#M5085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&lt;SPAN style="color: #2e3033; background-color: #f9fbfc;"&gt;Thanks for your quick response,and I am sorry I forgot to tell you what &amp;nbsp;'s my design idea.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2e3033; background-color: #f9fbfc; font-size: 15px;"&gt;1.The LCF configuration as follow :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2e3033; background-color: #f9fbfc; font-size: 15px;"&gt;This is the bootloader field :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2e3033; background-color: #f9fbfc; font-size: 12px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="QQ图片20170306224737.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14822iFEA0563F802CADE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="QQ图片20170306224737.png" alt="QQ图片20170306224737.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2e3033; background-color: #f9fbfc; font-size: 15px;"&gt;2. As you said ,I&amp;nbsp;&amp;nbsp;have defined&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;three instances of ssdConfig which like the example ..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-size: 15px;"&gt;3.And the code running from the RAM .I&amp;nbsp; re-define the&amp;nbsp;&amp;nbsp;C-array drivers as variables (just delete “const”) and they will be automatically copied to RAM by startup code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-size: 15px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="QQ图片20170306223024.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14765i935F6ECDB6E72EB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="QQ图片20170306223024.png" alt="QQ图片20170306223024.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-size: 15px;"&gt;Here just the&amp;nbsp; &lt;SPAN&gt;C-array drivers&amp;nbsp;locate the Ram area , whether need to define the function which called the&amp;nbsp; &lt;SPAN style="background-color: #ffffff;"&gt;C-array drivers in the Ram area? For example ,in my project the function ;EraseFlash().&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-size: 15px;"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="QQ图片20170306222303.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14729iC4630608361CF7D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="QQ图片20170306222303.png" alt="QQ图片20170306222303.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-size: 15px;"&gt;&lt;SPAN&gt;I will have a try with your example project if still erase failed .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-size: 15px;"&gt;&lt;SPAN&gt;Thank you very much !&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-size: 15px;"&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-size: 15px;"&gt;&lt;SPAN&gt;Dennis&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 15:01:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613400#M5085</guid>
      <dc:creator>dennisyuan</dc:creator>
      <dc:date>2017-03-06T15:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Flash erase Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613401#M5086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Today I &lt;SPAN style="color: #2e3033; background-color: #f9fbfc; font-size: 13px;"&gt;Transplant the example code to my project ,and I close the other function .it means the project just the transplanted code .in the code I erase block 3(0x0001c000-0x00020000). The result seems same as my code .That means when erase the block ,the program will runway.And I check the memory the value is 0x00000000,seems not correct.you can see it in the following :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2e3033; background-color: #f9fbfc; font-size: 13px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16641i58A0088DB4B2CE92/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2e3033; background-color: #f9fbfc; font-size: 13px;"&gt;the code &amp;nbsp;as the follow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #f9fbfc; color: #2e3033; font-size: 13px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16642iCBE087B57E7B0867/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #f9fbfc; color: #2e3033; font-size: 13px;"&gt;we can know the pFlashErase runing in the RAM ，right？&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #f9fbfc; color: #2e3033; font-size: 13px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17003i687FCAB39F91EE2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #f9fbfc; color: #2e3033; font-size: 13px;"&gt;and the register:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #f9fbfc; color: #2e3033; font-size: 13px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16784iFEE33C31B2151DEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16825iC98103725B8F0A17/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #f9fbfc; color: #2e3033; font-size: 13px;"&gt;LCF configuration:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #f9fbfc; color: #2e3033; font-size: 13px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16878iB4AD7AD4935AD1F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #f9fbfc; color: #2e3033; font-size: 13px;"&gt;In my thinking ,all the above information is ok ,but I don't know why the result is not correct ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #f9fbfc; color: #2e3033; font-size: 13px;"&gt;Could you help me double check the example code ,and if you have other ideas ,please let me know ,thank you !&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 09:39:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613401#M5086</guid>
      <dc:creator>dennisyuan</dc:creator>
      <dc:date>2017-03-07T09:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Flash erase Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613402#M5087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;Lukas,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;I have found&amp;nbsp;the root cause of my problem ,it's the watchdog.Disable the watchdog when erase the blocks the erase result is ok.Your example is correct .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;Thank for your great support!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 03:38:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Flash-erase-Problem/m-p/613402#M5087</guid>
      <dc:creator>dennisyuan</dc:creator>
      <dc:date>2017-03-08T03:38:18Z</dc:date>
    </item>
  </channel>
</rss>

