<?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: Bootloader and app using same Vector, App don't work properly</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bootloader-and-app-using-same-Vector-App-don-t-work-properly/m-p/254325#M7401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved , you have to boot your app before &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;bsp_platform_init(void)&lt;/SPAN&gt; in bootloader code is a problem with dual initialization of PLL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Feb 2014 10:45:50 GMT</pubDate>
    <dc:creator>scary2021</dc:creator>
    <dc:date>2014-02-25T10:45:50Z</dc:date>
    <item>
      <title>Bootloader and app using same Vector, App don't work properly</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bootloader-and-app-using-same-Vector-App-don-t-work-properly/m-p/254324#M7400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm Using K60 with CW10.2 and MQX 3.8, based in example bootloader AN4368SW rev2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After some tests I've discovered that all interrupts are working except USB(59h vector) used by the Bootloader. What can I do?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;vectors.c from bootloader:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;tIsrFunc&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)USB_ISR, &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/*&amp;nbsp; 0x59 0x00000164 - ivINT_USB0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This dont go */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;tIsrFunc&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)Cpu_Interrupt, &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/*&amp;nbsp; 0x43 0x0000010C - ivINT_UART3_RX_TX&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This perfect */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt;I have discovered that if I coment this lines in bsp_platform_init(void) in bootloader code, the app runs with usb interruption OK, but the bootloader don't.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SOPT2 |= SIM_SOPT2_USBSRC_MASK | SIM_SOPT2_PLLFLLSEL_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_CLKDIV2=0x02;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // USB Freq Divider&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // weak pulldowns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB0_USBCTRL=0x40;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone can explain me why if this lines are executed the usb driver not initialize in the app, using MQX.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 09:42:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bootloader-and-app-using-same-Vector-App-don-t-work-properly/m-p/254324#M7400</guid>
      <dc:creator>scary2021</dc:creator>
      <dc:date>2014-02-21T09:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader and app using same Vector, App don't work properly</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bootloader-and-app-using-same-Vector-App-don-t-work-properly/m-p/254325#M7401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved , you have to boot your app before &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;bsp_platform_init(void)&lt;/SPAN&gt; in bootloader code is a problem with dual initialization of PLL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 10:45:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bootloader-and-app-using-same-Vector-App-don-t-work-properly/m-p/254325#M7401</guid>
      <dc:creator>scary2021</dc:creator>
      <dc:date>2014-02-25T10:45:50Z</dc:date>
    </item>
  </channel>
</rss>

