<?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>MQX Software SolutionsのトピックRe: something wrong with flashx</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566272#M16525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tifen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which MQX version you are using, 4.1, 4.2, or 4.2.0.2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2016 06:50:57 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2016-08-29T06:50:57Z</dc:date>
    <item>
      <title>something wrong with flashx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566271#M16524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am using k60d100m with 512 flash.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;const FLASHX_FILE_BLOCK _bsp_flashx_file_blocks[] = {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; { "bank0", BSP_INTERNAL_FLASH_BASE, BSP_INTERNAL_FLASH_BASE + (BSP_INTERNAL_FLASH_SIZE / 2) - 1 },&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; { "bank1", BSP_INTERNAL_FLASH_BASE + (BSP_INTERNAL_FLASH_SIZE / 2), BSP_INTERNAL_FLASH_BASE + (BSP_INTERNAL_FLASH_SIZE ) - 1 },&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// swap file definition according to the default value of BSPCFG_SWAP_INDICATOR_ADDR and sector size&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; { "swap0", BSP_INTERNAL_FLASH_BASE, BSP_INTERNAL_FLASH_BASE + (BSP_INTERNAL_FLASH_SIZE / 2) - (1 + BSP_INTERNAL_FLASH_SECTOR_SIZE) },&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; { "swap1", BSP_INTERNAL_FLASH_BASE + (BSP_INTERNAL_FLASH_SIZE / 2), BSP_INTERNAL_FLASH_BASE + (BSP_INTERNAL_FLASH_SIZE ) - (1 + BSP_INTERNAL_FLASH_SECTOR_SIZE) },&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// flash space used by application&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; { "code", BSP_INTERNAL_FLASH_BASE, (uint32_t)__FLASHX_START_ADDR - 1 },&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// remaining free flash space&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; { "", (uint32_t)__FLASHX_START_ADDR, (uint32_t)__FLASHX_END_ADDR },&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; { NULL, 0, 0 }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i open the bank0 and write() the last sector(3F800 - 3FFFF),it is invalid.&lt;/P&gt;&lt;P&gt;error form&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;ftfl_flash_erase_sector(),&lt;/STRONG&gt;error code&lt;STRONG&gt;&amp;nbsp;FTFL_ERR_PVIOL,&lt;/STRONG&gt;Seems to be protected.&lt;/P&gt;&lt;P&gt;also the bank1 last sector(7F800 - 7FFFF) is not working.&lt;/P&gt;&lt;P&gt;but i had try the next to last&lt;SPAN class="" style="color: #f57527; background-color: #f9f9f9; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;sector(3F000-3F7FF) is ok.&lt;/P&gt;&lt;P&gt;why is that happened?can i&amp;nbsp;&amp;nbsp;use bank0 &amp;nbsp;and bank1 as last sector?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2016 02:40:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566271#M16524</guid>
      <dc:creator>tifentan</dc:creator>
      <dc:date>2016-08-27T02:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: something wrong with flashx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566272#M16525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tifen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which MQX version you are using, 4.1, 4.2, or 4.2.0.2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 06:50:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566272#M16525</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-08-29T06:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: something wrong with flashx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566273#M16526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply,Daniel.&lt;/P&gt;&lt;P&gt;It's 4.2&lt;/P&gt;&lt;P&gt;And I try in 4.1, the same results.&lt;/P&gt;&lt;P&gt;I found that for the first time the sector is blank(FF), you can write() correctly.&lt;/P&gt;&lt;P&gt;but after the restart it can not write.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 00:15:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566273#M16526</guid>
      <dc:creator>tifentan</dc:creator>
      <dc:date>2016-08-30T00:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: something wrong with flashx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566274#M16527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tifen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the last sector,&amp;nbsp; maybe your last sector is protected in your project, you need to unprotecting the FLASH before you do it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Unprotecting the the FLASH might be required */&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ioctl_param = 0;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ioctl(flash_file, FLASH_IOCTL_WRITE_PROTECT, &amp;amp;ioctl_param);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a flashx demo in the MQX installation folder, which writes string of&amp;nbsp; characters into the memory and reads it back. You can refer to it&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_2\mqx\examples\flashx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 05:11:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566274#M16527</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-08-31T05:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: something wrong with flashx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566275#M16528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel:&lt;/P&gt;&lt;P&gt;I had try the &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;C:\Freescale\Freescale_MQX_4_2\mqx\examples\flashx demo.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;here are the prints:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MQX Flash Example&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Flash file flashx:bank0 opened&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Size of the flash file: 0x40000 Bytes&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Flash sector cache enabled.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Reading last 32 Bytes.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;String found:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Type a string to be written to the end of file (31 chars max.):45454&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error writing to the file. Error code: 2563&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Flash example finished.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used to run &amp;nbsp;the &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Freescale_MQX_4_2\mqx\examples\&lt;/SPAN&gt;flashx_swap,would that affected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 07:28:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566275#M16528</guid>
      <dc:creator>tifentan</dc:creator>
      <dc:date>2016-08-31T07:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: something wrong with flashx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566276#M16529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think it would affect. But I can't reproduce your issue in my side,&amp;nbsp; it seems there are some errors in the last sector, could you erase it and try it again?&lt;/P&gt;&lt;P&gt;I also suggest you patch with the latest MQX patch 4.2.0.2,&amp;nbsp; this patch fixed one issue for FTFL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 08:33:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566276#M16529</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-08-31T08:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: something wrong with flashx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566277#M16530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The console print in my side is:&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/5369i8F161636380C185E/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 08:57:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566277#M16530</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-08-31T08:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: something wrong with flashx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566278#M16531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I update to 4.2.0.2 this morning.it seems not working.&lt;/P&gt;&lt;P&gt;I &lt;SPAN class="" style="color: #f57527; background-color: #f9f9f9; font-size: 14px;"&gt;step &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;into &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;the write()&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;code and find that it erase the sector by call&amp;nbsp;&lt;STRONG&gt;_io_flashx_erase_sector()&amp;nbsp;&lt;/STRONG&gt;in&amp;nbsp;&lt;STRONG&gt;_io_flashx_write_partial_sector()&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;And the error just come from the&amp;nbsp;&lt;STRONG&gt;_io_flashx_erase_sector()&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 15px;"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-weight: normal; font-size: 15px;"&gt;error code&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 15px;"&gt;&lt;STRONG&gt;&amp;nbsp;FTFL_ERR_PVIOL.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;here is&amp;nbsp;the call stack:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;ftfl_flash_command_sequence&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ftfl_flash_erase_sector&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_io_flashx_erase_sector&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_io_flashx_write_partial_sector&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_io_flashx_write&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;&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;_io_write&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;It seems can not erase the last sector. &amp;nbsp; -o-!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;however,thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="QQ图片20160831172128.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5457i98B1B7E4B9455696/image-size/large?v=v2&amp;amp;px=999" role="button" title="QQ图片20160831172128.png" alt="QQ图片20160831172128.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;by the way,你会说中文吗&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 09:12:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/something-wrong-with-flashx/m-p/566278#M16531</guid>
      <dc:creator>tifentan</dc:creator>
      <dc:date>2016-08-31T09:12:47Z</dc:date>
    </item>
  </channel>
</rss>

