<?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 Re: KL25 FRDM Bootloader initialization location in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25-FRDM-Bootloader-initialization-location/m-p/335919#M16013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bootloader needs to decide at startup if it shall run the Bootloader or the application. For this we need to have a decision criteria, which is typically a jumper or a push button to be pressed at power up to enter bootloader mode.&lt;/P&gt;&lt;P&gt;The check before the PE_low_level_init() routine in order to avoid some modules initialization affect application routine, such as MCG module working mode, pins multiplexed function setting and etc.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ma Hui&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, 03 Feb 2015 05:44:36 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2015-02-03T05:44:36Z</dc:date>
    <item>
      <title>KL25 FRDM Bootloader initialization location</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25-FRDM-Bootloader-initialization-location/m-p/335918#M16012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the serial bootloader with processor expert, which is really, cool, I just have question about the way that it is initialized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bootloader here: &lt;A href="http://mcuoneclipse.com/2013/04/28/serial-bootloader-for-the-freedom-board-with-processor-expert/" rel="nofollow noopener noreferrer" title="http://mcuoneclipse.com/2013/04/28/serial-bootloader-for-the-freedom-board-with-processor-expert/" target="_blank"&gt;Serial Bootloader for the Freedom Board with Processor Expert | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does the check for a button press need to happen before the main loop is reached? Could the check for whether or not the bootloader runs not go into the main loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I.E. Why do we need the check here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14226423163972488" jivemacro_uid="_14226423163972488"&gt;
&lt;P&gt;void __init_hardware(void)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /*** User code before PE initialization ***/&lt;/P&gt;
&lt;P&gt;&amp;nbsp; BL_CheckForUserApp(); /* check if we shall directly call the user app */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /*** End of user code before PE initialization ***/&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14226423274255495" jivemacro_uid="_14226423274255495"&gt;
&lt;P&gt;int main(void)&lt;/P&gt;
&lt;P&gt;/*lint -restore Enable MISRA rule (6.3) checking. */&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* Write your local variable definition here */&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PE_low_level_init();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /*** End of Processor Expert internal initialization.&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; ***/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; BL_Run();&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ask because I need to initialize a Bluetooth device, which after initialization becomes transparent as a UART device.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 18:28:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25-FRDM-Bootloader-initialization-location/m-p/335918#M16012</guid>
      <dc:creator>allgood38</dc:creator>
      <dc:date>2015-01-30T18:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: KL25 FRDM Bootloader initialization location</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25-FRDM-Bootloader-initialization-location/m-p/335919#M16013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bootloader needs to decide at startup if it shall run the Bootloader or the application. For this we need to have a decision criteria, which is typically a jumper or a push button to be pressed at power up to enter bootloader mode.&lt;/P&gt;&lt;P&gt;The check before the PE_low_level_init() routine in order to avoid some modules initialization affect application routine, such as MCG module working mode, pins multiplexed function setting and etc.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ma Hui&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, 03 Feb 2015 05:44:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25-FRDM-Bootloader-initialization-location/m-p/335919#M16013</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2015-02-03T05:44:36Z</dc:date>
    </item>
  </channel>
</rss>

