<?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: K60 Bootload via AN4367... Stupid Question</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-Bootload-via-AN4367-Stupid-Question/m-p/259544#M7895</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;This is possible because there is a small piece of code executed out of RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* == Should be in the RAM ==*/&lt;/P&gt;&lt;P&gt;#if FNET_CFG_COMP_CW&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #pragma define_section FNET_RAM ".FNET_RAM" ".FNET_RAM" ".FNET_RAM" far_abs RX&lt;/P&gt;&lt;P&gt;&amp;nbsp; __declspec(FNET_RAM)&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;#if FNET_CFG_COMP_IAR &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __ramfunc&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;static&amp;nbsp; &lt;/P&gt;&lt;P&gt;#if FNET_CFG_COMP_UV &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __attribute__((section("FNET_RAM"))) __attribute__((used))&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;void fnet_ftfl_command_lunch_inram(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FNET_MK_FTFL_FSTAT = FNET_MK_FTFL_FSTAT_CCIF_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (!(FNET_MK_FTFL_FSTAT &amp;amp; FNET_MK_FTFL_FSTAT_CCIF_MASK)) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {};&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not executing from block 0 while flashing the block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Aug 2013 21:56:34 GMT</pubDate>
    <dc:creator>alejandrolozan1</dc:creator>
    <dc:date>2013-08-19T21:56:34Z</dc:date>
    <item>
      <title>K60 Bootload via AN4367... Stupid Question</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-Bootload-via-AN4367-Stupid-Question/m-p/259543#M7894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great Ap Note... Coded into two designs... works like a champ!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here's my stupid question:&amp;nbsp; How come this works????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This approach to bootload involves executing and programing Flash memory in the K60 all confined to Block 0. How is it that I am not seeing read while write issues???&amp;nbsp; &lt;/P&gt;&lt;P&gt;See this from AN4367 (note, the application itself is loaded into 0x0000_C0000):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="page" title="Page 2"&gt;&lt;/P&gt;&lt;DIV class="column"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesLTStd';"&gt;The bootloader is placed into the first 48 KB of the on-chip flash memory, but the actual size of the bootloader can be smaller. The user application can be placed into the flash area above the bootloader flash area. The last 4 KB of the flash memory must be reserved for the bootloader's parameters storage, which is defined by the size of the erase-page of the on- chip flash memory. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesLTStd';"&gt;The following figure shows the memory map and the bootloader memory footprint. The bootloader code is located in the first address of the flash memory, 0x0000_0000 to 0x0000_BFFF. The bootloader parameters are located in the first address of the last logical-block of the flash memory, 0x0007_F000 to 0x0008_0000 (in Kinetis MK60n512). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="bootmap.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40475iE3081B211ED3C1CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="bootmap.jpg" alt="bootmap.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&amp;nbsp; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 16:15:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-Bootload-via-AN4367-Stupid-Question/m-p/259543#M7894</guid>
      <dc:creator>snowkid</dc:creator>
      <dc:date>2013-08-16T16:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: K60 Bootload via AN4367... Stupid Question</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-Bootload-via-AN4367-Stupid-Question/m-p/259544#M7895</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;This is possible because there is a small piece of code executed out of RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* == Should be in the RAM ==*/&lt;/P&gt;&lt;P&gt;#if FNET_CFG_COMP_CW&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #pragma define_section FNET_RAM ".FNET_RAM" ".FNET_RAM" ".FNET_RAM" far_abs RX&lt;/P&gt;&lt;P&gt;&amp;nbsp; __declspec(FNET_RAM)&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;#if FNET_CFG_COMP_IAR &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __ramfunc&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;static&amp;nbsp; &lt;/P&gt;&lt;P&gt;#if FNET_CFG_COMP_UV &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __attribute__((section("FNET_RAM"))) __attribute__((used))&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;void fnet_ftfl_command_lunch_inram(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FNET_MK_FTFL_FSTAT = FNET_MK_FTFL_FSTAT_CCIF_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (!(FNET_MK_FTFL_FSTAT &amp;amp; FNET_MK_FTFL_FSTAT_CCIF_MASK)) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {};&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not executing from block 0 while flashing the block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 21:56:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-Bootload-via-AN4367-Stupid-Question/m-p/259544#M7895</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2013-08-19T21:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: K60 Bootload via AN4367... Stupid Question</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-Bootload-via-AN4367-Stupid-Question/m-p/259545#M7896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alejandro - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The odd thing is: one of my designs I definitely do not jump to RAM (FNET was doing this for me on the other as you pointed out).&amp;nbsp; The only guess I have is that maybe the instruction cache prevented the error?&amp;nbsp; At any rate it has been redesigned to use page 1.&amp;nbsp; Thank you for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 21:34:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-Bootload-via-AN4367-Stupid-Question/m-p/259545#M7896</guid>
      <dc:creator>snowkid</dc:creator>
      <dc:date>2013-08-22T21:34:00Z</dc:date>
    </item>
  </channel>
</rss>

