<?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: K20 Reset bit Lockup set after sector erase</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Reset-bit-Lockup-set-after-sector-erase/m-p/176095#M1496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had spurious flashing errors which went away when I moved the flash cache reset (a write to FMC_PFB01CR) to the helper function which always runs from RAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Related to your problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2012 21:22:15 GMT</pubDate>
    <dc:creator>konrada</dc:creator>
    <dc:date>2012-07-03T21:22:15Z</dc:date>
    <item>
      <title>K20 Reset bit Lockup set after sector erase</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Reset-bit-Lockup-set-after-sector-erase/m-p/176094#M1495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I do Program Flash Sector Erase, bit1 (Lockup) in the RCM bloc is set. This means that the ARM core stops executing instructions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I initialize the flash bloc by calling FTFL_Initialization(); as&amp;nbsp;defined defined in flash_kinetis.c.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I send one or more:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FTFL_EraseSector(0x0000A000);&amp;nbsp; // 0x0000A0000 can be different adresses of course...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Lockup Reset happens sometimes after sending&amp;nbsp;the 1st FTFL_EraseSector command, but mostly it happens after the 2nd. It seems to happen less if I wait very long after each erase cmd (&amp;gt;5s) (while debugging, single step), but that is not usable of course.&lt;/P&gt;&lt;P&gt;The flash sector is erased apparently before the lockup, but the processor hangs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use CW V10.2 + JLINK with a&amp;nbsp;K20DX128.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 17:09:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Reset-bit-Lockup-set-after-sector-erase/m-p/176094#M1495</guid>
      <dc:creator>degry</dc:creator>
      <dc:date>2012-06-29T17:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: K20 Reset bit Lockup set after sector erase</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Reset-bit-Lockup-set-after-sector-erase/m-p/176095#M1496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had spurious flashing errors which went away when I moved the flash cache reset (a write to FMC_PFB01CR) to the helper function which always runs from RAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Related to your problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 21:22:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-Reset-bit-Lockup-set-after-sector-erase/m-p/176095#M1496</guid>
      <dc:creator>konrada</dc:creator>
      <dc:date>2012-07-03T21:22:15Z</dc:date>
    </item>
  </channel>
</rss>

