<?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 about Jump from Flash to RAM code in Colilo. in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/about-Jump-from-Flash-to-RAM-code-in-Colilo/m-p/134656#M1487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;HI Freescale,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the following&amp;nbsp; code&amp;nbsp;is &amp;nbsp;in boot.S in Colilo. and I am confused with the Jump.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#ifdef CONFIG_COLILO_SOLO&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;#0xFF800000, %a0&amp;nbsp;/* Colilo's in Boot flash */&lt;BR /&gt;#else&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;#0xE0000000, %a0&amp;nbsp;/* Colilo's in Code flash */&lt;BR /&gt;#endif&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;#0x1000000, %a1&amp;nbsp;&amp;nbsp;/* RAM destination address */&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;#0x7FFC, %d0&amp;nbsp;&amp;nbsp;/* 32K long = 128 Kb */&lt;/DIV&gt;&lt;DIV&gt;loop_copy:&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;&lt;A class="jive-link-email-small" href="mailto:%a0@+,%d1"&gt;%a0@+,%d1&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;%d1,%a1@+&lt;BR /&gt;&amp;nbsp;subq.l&amp;nbsp;#1,%d0&lt;BR /&gt;&amp;nbsp;bne.s&amp;nbsp;loop_copy&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;#real_start,%a0&lt;BR /&gt;&amp;nbsp;jmp&amp;nbsp;(%a0)&amp;nbsp;&lt;SPAN style="color: #FF00CC;"&gt;/* Jump to colilo start address in RAM */&amp;nbsp;&amp;nbsp; What this mean?? I think the #real_start is still in Flash. So didn't jump to the RAM.&lt;BR /&gt;&lt;/SPAN&gt;#endif&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;/*&lt;BR /&gt;&amp;nbsp;*&amp;nbsp;Disable the cache. Don't want it on just yet.&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;real_start:&amp;nbsp;&lt;BR /&gt;&amp;nbsp;jsr&amp;nbsp;disableCache&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;jsr &amp;nbsp;mcf548x_init&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;#__SP_INIT, %SP&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;/*&lt;BR /&gt;&amp;nbsp;*&amp;nbsp;Most of the setup work is done in main().&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;&amp;nbsp;jsr&amp;nbsp;start_main&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Oct 2006 16:08:04 GMT</pubDate>
    <dc:creator>Jiandong</dc:creator>
    <dc:date>2006-10-30T16:08:04Z</dc:date>
    <item>
      <title>about Jump from Flash to RAM code in Colilo.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/about-Jump-from-Flash-to-RAM-code-in-Colilo/m-p/134656#M1487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;HI Freescale,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the following&amp;nbsp; code&amp;nbsp;is &amp;nbsp;in boot.S in Colilo. and I am confused with the Jump.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#ifdef CONFIG_COLILO_SOLO&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;#0xFF800000, %a0&amp;nbsp;/* Colilo's in Boot flash */&lt;BR /&gt;#else&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;#0xE0000000, %a0&amp;nbsp;/* Colilo's in Code flash */&lt;BR /&gt;#endif&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;#0x1000000, %a1&amp;nbsp;&amp;nbsp;/* RAM destination address */&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;#0x7FFC, %d0&amp;nbsp;&amp;nbsp;/* 32K long = 128 Kb */&lt;/DIV&gt;&lt;DIV&gt;loop_copy:&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;&lt;A class="jive-link-email-small" href="mailto:%a0@+,%d1"&gt;%a0@+,%d1&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;%d1,%a1@+&lt;BR /&gt;&amp;nbsp;subq.l&amp;nbsp;#1,%d0&lt;BR /&gt;&amp;nbsp;bne.s&amp;nbsp;loop_copy&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;#real_start,%a0&lt;BR /&gt;&amp;nbsp;jmp&amp;nbsp;(%a0)&amp;nbsp;&lt;SPAN style="color: #FF00CC;"&gt;/* Jump to colilo start address in RAM */&amp;nbsp;&amp;nbsp; What this mean?? I think the #real_start is still in Flash. So didn't jump to the RAM.&lt;BR /&gt;&lt;/SPAN&gt;#endif&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;/*&lt;BR /&gt;&amp;nbsp;*&amp;nbsp;Disable the cache. Don't want it on just yet.&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;real_start:&amp;nbsp;&lt;BR /&gt;&amp;nbsp;jsr&amp;nbsp;disableCache&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;jsr &amp;nbsp;mcf548x_init&lt;BR /&gt;&amp;nbsp;move.l&amp;nbsp;#__SP_INIT, %SP&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;/*&lt;BR /&gt;&amp;nbsp;*&amp;nbsp;Most of the setup work is done in main().&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;&amp;nbsp;jsr&amp;nbsp;start_main&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 16:08:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/about-Jump-from-Flash-to-RAM-code-in-Colilo/m-p/134656#M1487</guid>
      <dc:creator>Jiandong</dc:creator>
      <dc:date>2006-10-30T16:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: about Jump from Flash to RAM code in Colilo.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/about-Jump-from-Flash-to-RAM-code-in-Colilo/m-p/134657#M1488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I dont know Colilo, but looking at the code it does make sence if&lt;BR /&gt;the labels are evaluated by the linker to RAM addresses.&lt;BR /&gt;Then the code before the JMP is assembled to a different address than it is executed from. The code starts out of flash, copies itself to RAM, and once this is done, it jumps there.&lt;BR /&gt;Can you decode/disassemble it and check to what #real_start actually evaluates, to a RAM or to a FLASH address?&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 09:26:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/about-Jump-from-Flash-to-RAM-code-in-Colilo/m-p/134657#M1488</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-11-03T09:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: about Jump from Flash to RAM code in Colilo.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/about-Jump-from-Flash-to-RAM-code-in-Colilo/m-p/134658#M1489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;After remap and code copying &amp;nbsp;, the&amp;nbsp;RAM remap to&amp;nbsp;Flash address at 0x00000000, So #real_start is in Ram after.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 10:04:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/about-Jump-from-Flash-to-RAM-code-in-Colilo/m-p/134658#M1489</guid>
      <dc:creator>Jiandong</dc:creator>
      <dc:date>2006-11-06T10:04:23Z</dc:date>
    </item>
  </channel>
</rss>

