<?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>CodeWarrior Development Tools中的主题 Re: Trouble with bootloader in MC9S08 project</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752490#M6611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I very much appreciate all the trouble you are going through for me. Thank you. I am going to try this and let you know how it goes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2018 12:35:54 GMT</pubDate>
    <dc:creator>MikeM</dc:creator>
    <dc:date>2018-02-06T12:35:54Z</dc:date>
    <item>
      <title>Trouble with bootloader in MC9S08 project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752484#M6605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using CodeWarrior Development Studio Version 10.6.4 to develop firmware for a MC9S08DZ32 bare metal target board. I have 2 separate projects. One for the main application and one for the bootloader for field upgrades. I can download and run/debug both separately but when I jump from the bootloader to the main application, the main app still tries to use the bootloader vectors. Here is how I have things setup in CodeWarrior:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bootloader&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; In processor build options&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;ROM&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; F400 size=BAE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; In processor properties&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;Vector table&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F3C0 size=3E&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;Reset Vector&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FFFE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Protected area&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F400-FFFF (3 KB)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;Vector redirection&amp;nbsp; yes&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In the CodeWarrior debug configurations&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; preserved area = 7C00 to F3BE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main app&lt;BR /&gt;&amp;nbsp;&amp;nbsp; In processor build options&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROM&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; 7C00 size=77C0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; In processor properties&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;Vector table&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FFC0 size=3E&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;Reset Vector&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FFFE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;Protected area&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Disabled&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;Vector redirection&amp;nbsp; no&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In the CodeWarrior debug configurations&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; preserved area = none&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I first download the main app. Then I download the bootloader. I look at memory and the main app is still intact including its vectors. I then run and I can verify that the bootloader is running. I can communicate with it via a serial port and give it commands. When I give it the command to execute the main app, it goes to the correct location but when an interrupt happens, it uses the bootloader vectors instead of its own. What have I done wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I have searched the forums and found no direct answer. I have a trouble ticket into NXP and they have not been able to help yet. They suggested I come here so here I am. Please don't refer me to a link that supposedly answers this question because there isn't any. I will give you any additional details you need. Please! Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2018 14:05:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752484#M6605</guid>
      <dc:creator>MikeM</dc:creator>
      <dc:date>2018-01-24T14:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with bootloader in MC9S08 project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752485#M6606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="41572" data-username="MikeM" href="https://community.nxp.com/people/MikeM"&gt;Mike Maddi&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Do you redirected the vector of Bootloader ， not applicaton ?&lt;/P&gt;&lt;P&gt;Sorry I know the S08 bit mcu little, I think you should redirect the vector table of application.&lt;/P&gt;&lt;P&gt;And the vector redirection must be enabled.&lt;/P&gt;&lt;P&gt;I know you don't like link, while I think the problme is the vector redirection failed , so maybe&lt;/P&gt;&lt;P&gt;you can refer to other bootloader to redirect it :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/320078"&gt;关于飞思卡尔的Bootloader S08的试验AN2295&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still can''t work, please let me know. And which IDE do you used, If I have ,&amp;nbsp; I can test your code on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 10:06:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752485#M6606</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-01-30T10:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with bootloader in MC9S08 project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752486#M6607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response Alice. My last failed attempt was to set the bootloader's vector table the normal default location but still have the upper 3 kb of flash, where the bootloader code resides, protected and enabled vector redirection. I set the main application code vector table at the redirected location and have also protected the bootloader flash and enabled vector redirection. I get the same results when I transfer control to the main app. To get by this crisis and get on with my work I've given up and rewrote the bootloader to not use any interrupts. I don't like it but it works. I still need to know how to do this though. If you could look at my code, I would be eternally grateful. I am using CodeWarrior Development Studio Version 10.6.4 build ID 150416. My target board is a bare metal MC9S08DZ32.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 12:49:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752486#M6607</guid>
      <dc:creator>MikeM</dc:creator>
      <dc:date>2018-01-30T12:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with bootloader in MC9S08 project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752487#M6608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike, &lt;/P&gt;&lt;P&gt;Thanks for your sharing.&lt;/P&gt;&lt;P&gt;- How about this steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;1) start the bootloader (normal vectors)&lt;BR /&gt;&amp;nbsp;2) bootloader decides if it should run the application firmware (check for pin state, serial message, ...)&lt;BR /&gt;3)&amp;nbsp; Before run the application:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; i) disable interrupts&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ii) enable vector redirection&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; iii) JMP to application _Startup or main&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Or how about bootloader and APP use the same interrupt vector .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 09:22:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752487#M6608</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-01-31T09:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with bootloader in MC9S08 project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752488#M6609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice. I appreciate your help. I tried what you suggested however I am unable to do step 3 ii enable vector redirection. Maybe I am doing it wrong. According to the datasheet&amp;nbsp; for this MCU, "Vector redirection is enabled by programming the FNORED bit in the NVOPT register located at address 0xFFBF to 0." However, that is a program once register and will not allow me to change it. So how can I enable the vector redirection?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 16:10:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752488#M6609</guid>
      <dc:creator>MikeM</dc:creator>
      <dc:date>2018-01-31T16:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with bootloader in MC9S08 project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752489#M6610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I asked some other colleague and check bootloader information about 8 bit MCU.&lt;/P&gt;&lt;P&gt;It seems the boolotader&amp;nbsp; usually do not use interrtup.&lt;/P&gt;&lt;P&gt;I refer to the AN2295 ,&amp;nbsp; the original interrup vector table is empty:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323i4B4234CBB46448DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also there is a part about interrupt relocation:&lt;/P&gt;&lt;P&gt;4.4 Interrupt vector table relocation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I checked the source code , it is enable vector redirecton in bootloader code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226iE1AE10A5ADE7DFE4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 09:41:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752489#M6610</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-02-06T09:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with bootloader in MC9S08 project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752490#M6611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I very much appreciate all the trouble you are going through for me. Thank you. I am going to try this and let you know how it goes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 12:35:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752490#M6611</guid>
      <dc:creator>MikeM</dc:creator>
      <dc:date>2018-02-06T12:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with bootloader in MC9S08 project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752491#M6612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice, sorry I took so long but I have been swamped with work. The pressure has been on me to finish this task so I have gone with the none interrupt version which has been working very well. So I have not tried your last suggestion but will when I get a chance which may be some time from now. Until then, thank you so much for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2018 19:54:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752491#M6612</guid>
      <dc:creator>MikeM</dc:creator>
      <dc:date>2018-02-14T19:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with bootloader in MC9S08 project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752492#M6613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;Thanks for your sharing.&lt;/P&gt;&lt;P&gt;Have a nice and good work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 06:17:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Trouble-with-bootloader-in-MC9S08-project/m-p/752492#M6613</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-02-22T06:17:09Z</dc:date>
    </item>
  </channel>
</rss>

