<?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>Classic/Legacy CodeWarrior中的主题 absolute jump to application from bootloader</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/absolute-jump-to-application-from-bootloader/m-p/160610#M2679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´m looking for a solution for&amp;nbsp;&amp;nbsp;my bootloader.&lt;/P&gt;&lt;P&gt;I´m using 56F8025 and CW_forDSC56800E V8.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After downloading the firmware I want the program to jump to an absolute address.&lt;/P&gt;&lt;P&gt;The absolute address is the entry point of the application, stored in the downloaded relocated vector table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I´m not familiar with assembler for dsc 56f800/E, is there any idea how to manage this absolute jump for the dsc56F800 family?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Mar 2009 22:53:11 GMT</pubDate>
    <dc:creator>nordic56</dc:creator>
    <dc:date>2009-03-10T22:53:11Z</dc:date>
    <item>
      <title>absolute jump to application from bootloader</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/absolute-jump-to-application-from-bootloader/m-p/160610#M2679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´m looking for a solution for&amp;nbsp;&amp;nbsp;my bootloader.&lt;/P&gt;&lt;P&gt;I´m using 56F8025 and CW_forDSC56800E V8.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After downloading the firmware I want the program to jump to an absolute address.&lt;/P&gt;&lt;P&gt;The absolute address is the entry point of the application, stored in the downloaded relocated vector table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I´m not familiar with assembler for dsc 56f800/E, is there any idea how to manage this absolute jump for the dsc56F800 family?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 22:53:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/absolute-jump-to-application-from-bootloader/m-p/160610#M2679</guid>
      <dc:creator>nordic56</dc:creator>
      <dc:date>2009-03-10T22:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: absolute jump to application from bootloader</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/absolute-jump-to-application-from-bootloader/m-p/160611#M2680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not as familiar with the 56f8025, but on the 56f8367 and 56f8357s I use, the codewarrior PE tool will store the user's starting address in the top 32bits of dataflash memory - if you have the PE license it does this automatically if you check "Bootloader support = Yes" in the processor expert.&amp;nbsp; IF you don't have PE license, you could do the similar thing with your app code with the address of main().&amp;nbsp;&amp;nbsp; You must loadthe 32-bit address value into an unsigned long "StartAddress".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bootloader then just does the following (in the '357 and '367 anyhow):&lt;/P&gt;&lt;P&gt;#define USER_INTERRUPT_VECTOR_ADDRESS (0x00000000UL)&lt;/P&gt;&lt;P&gt;#define INTC_VBA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *((volatile word *)0x0000F1AA)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /****************************************************************************&lt;BR /&gt;&amp;nbsp; / change base address of the interrupt vector table for user's application&lt;BR /&gt;&amp;nbsp; /****************************************************************************/&lt;BR /&gt;&amp;nbsp;&amp;nbsp; setReg(INTC_VBA, USER_INTERRUPT_VECTOR_ADDRESS &amp;gt;&amp;gt; 8);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; asm(nop);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; asm(nop);&lt;BR /&gt;&amp;nbsp; /****************************************************************************&lt;BR /&gt;&amp;nbsp; / call user's application&lt;BR /&gt;&amp;nbsp; /****************************************************************************/&lt;BR /&gt;&amp;nbsp;&amp;nbsp; asm(move.l StartAddress, N);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; asm(jmp (N));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // and off we go to application&lt;BR /&gt;&amp;nbsp;&amp;nbsp; asm(nop);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; asm(nop);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps - my apologies if I misunderstood your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Apr 2009 03:24:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/absolute-jump-to-application-from-bootloader/m-p/160611#M2680</guid>
      <dc:creator>FTSolutions</dc:creator>
      <dc:date>2009-04-11T03:24:32Z</dc:date>
    </item>
  </channel>
</rss>

