<?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>Kinetis MicrocontrollersのトピックRe: Flash swap problem on MK22FN1M0VLH12</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-swap-problem-on-MK22FN1M0VLH12/m-p/363458#M18591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ma Hui,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes i have checked AN4533. But isn't the demo is about simulating firmware update by updating the firmware with the same firmware ? In my program, I called Swap_Init(), program the upper block flash in some other routine, and called Swap_End(). Is this correct ? Or should i copy the lower block to upper block first ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Handy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Feb 2015 08:27:06 GMT</pubDate>
    <dc:creator>handychandra</dc:creator>
    <dc:date>2015-02-13T08:27:06Z</dc:date>
    <item>
      <title>Flash swap problem on MK22FN1M0VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-swap-problem-on-MK22FN1M0VLH12/m-p/363456#M18589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could someone help me with flash swap problem ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using C90TFS Flash driver from freescale to perform flash swap.&amp;nbsp; But when flash swap completed and i restart the MCU, the MCU doesn't run. Here are my code for your reference.&lt;/P&gt;&lt;P&gt;I called SwapInit(), program the upper block, and then call SwapEnd(). By the way, when the MCU doesn't run, i read the flash memory using SWD. And the content of the flash match exactly with my firmware image (.bin).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337513"&gt;swap.h.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337513"&gt;swap.c.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 10:49:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-swap-problem-on-MK22FN1M0VLH12/m-p/363456#M18589</guid>
      <dc:creator>handychandra</dc:creator>
      <dc:date>2015-02-10T10:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Flash swap problem on MK22FN1M0VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-swap-problem-on-MK22FN1M0VLH12/m-p/363457#M18590</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;I checked your attached swap.c file, there without routine to copy the contents of the lower p-flash block to the upper p-flash block.&lt;/P&gt;&lt;P&gt;I would recommend customer to check Kinetis Flash swamp application note &lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4533.pdf"&gt;AN4533&lt;/A&gt; related software, customer can download it from &lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4533SW.zip"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 07:06:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-swap-problem-on-MK22FN1M0VLH12/m-p/363457#M18590</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2015-02-13T07:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Flash swap problem on MK22FN1M0VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-swap-problem-on-MK22FN1M0VLH12/m-p/363458#M18591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ma Hui,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes i have checked AN4533. But isn't the demo is about simulating firmware update by updating the firmware with the same firmware ? In my program, I called Swap_Init(), program the upper block flash in some other routine, and called Swap_End(). Is this correct ? Or should i copy the lower block to upper block first ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Handy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 08:27:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-swap-problem-on-MK22FN1M0VLH12/m-p/363458#M18591</guid>
      <dc:creator>handychandra</dc:creator>
      <dc:date>2015-02-13T08:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Flash swap problem on MK22FN1M0VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-swap-problem-on-MK22FN1M0VLH12/m-p/363459#M18592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Handy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The AN4533 is update using the same firmware. &lt;/P&gt;&lt;P&gt;Your precessing should be correct. There is no need to copy the lower block code to upper block at first.&lt;/P&gt;&lt;P&gt;Could you check if the loaded firmware could work at the MK22FN1M0VLH12 chip?&lt;/P&gt;&lt;P&gt;And please check the SCB_VTOR (vector table address), in general the start_up routine will copy vector table content to SRAM and redirect SCB_VTOR to RAM. If your updated firmware also with that code? Or, the SCB_VTOR could be redirect to 0x0 address (using Flash vector table).&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Feb 2015 07:35:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-swap-problem-on-MK22FN1M0VLH12/m-p/363459#M18592</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2015-02-15T07:35:25Z</dc:date>
    </item>
  </channel>
</rss>

