<?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: K66 - Problems programming flash. in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-Problems-programming-flash/m-p/660935#M40573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought we had to provide copy functions to ram functions but it is done automatically using &lt;/P&gt;&lt;P&gt;FLASH_DRIVER_IS_FLASH_RESIDENT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Nov 2016 21:13:08 GMT</pubDate>
    <dc:creator>calvinday</dc:creator>
    <dc:date>2016-11-15T21:13:08Z</dc:date>
    <item>
      <title>K66 - Problems programming flash.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-Problems-programming-flash/m-p/660931#M40569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have written a bootloader that occupies the 0x000000 - 0x0FFFFF in flash memory and a application that occupies 0x100000 - 0x1FFFFF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the bootloader runs, it checks to see if the application is in flash. If not, it will copy the application from external eMMC and flash it. The unit then reboots and the bootloader launches the new application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything is working as expected however, when we moved the application to location 0x06000 - 0x1FFFFF, the flash erase function no longer works while trying to erase the first sector. While debugging, the&amp;nbsp;MCU appears to restart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using KDS 2.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 18:43:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-Problems-programming-flash/m-p/660931#M40569</guid>
      <dc:creator>calvinday</dc:creator>
      <dc:date>2016-11-15T18:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: K66 - Problems programming flash.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-Problems-programming-flash/m-p/660932#M40570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The MCU is resetting and the&amp;nbsp;RCM_SRS1 register reports a LOCKUP event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 19:10:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-Problems-programming-flash/m-p/660932#M40570</guid>
      <dc:creator>calvinday</dc:creator>
      <dc:date>2016-11-15T19:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: K66 - Problems programming flash.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-Problems-programming-flash/m-p/660933#M40571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We realized that the code must be run out of ram so we added some relocated flash functions to ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 20:01:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-Problems-programming-flash/m-p/660933#M40571</guid>
      <dc:creator>calvinday</dc:creator>
      <dc:date>2016-11-15T20:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: K66 - Problems programming flash.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-Problems-programming-flash/m-p/660934#M40572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you disable all interrupts or&amp;nbsp;move the active interrupts&amp;nbsp;executable and remap the vectors to RAM? Interrupts must not&amp;nbsp;jump to&amp;nbsp;a flash bank code&amp;nbsp;when you're trying to flash it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 20:09:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-Problems-programming-flash/m-p/660934#M40572</guid>
      <dc:creator>ndavies</dc:creator>
      <dc:date>2016-11-15T20:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: K66 - Problems programming flash.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-Problems-programming-flash/m-p/660935#M40573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought we had to provide copy functions to ram functions but it is done automatically using &lt;/P&gt;&lt;P&gt;FLASH_DRIVER_IS_FLASH_RESIDENT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 21:13:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-Problems-programming-flash/m-p/660935#M40573</guid>
      <dc:creator>calvinday</dc:creator>
      <dc:date>2016-11-15T21:13:08Z</dc:date>
    </item>
  </channel>
</rss>

