<?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: __boot() function stops working in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/boot-function-stops-working/m-p/397487#M13351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is hard to say what could be reason for such behavior.&lt;/P&gt;&lt;P&gt;Idea1: Some pending interrupt could blocks MCU when it wake-ups. Please try disable all interrupts prior you call __boot function. e.g. by CPSID instruction (asm (CPSID f);).&lt;/P&gt;&lt;P&gt;Idea2: Problem could be in some transitions between clock modes. You can try set clock to default values after reset or switch to some non-conflict clock mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Theoretically you can try set some software breakpoint at enter from sleep mode, attach debugger and try debugging root cause of system hangs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MCU freeze in 100% cases or behavior is random?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&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>Thu, 16 Apr 2015 12:23:06 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2015-04-16T12:23:06Z</dc:date>
    <item>
      <title>__boot() function stops working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/boot-function-stops-working/m-p/397486#M13350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are developping an application on a kinetis K20 (MQX4.0 and IAR 7.40). This application has a bootloader. We use the function __boot to reboot only MQX and than restart the user application. This function is called after the sleep mode to restart the app. Where is specification of what we do.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The sleep mode is configured to wake up with a transition on a specific pin.&lt;/LI&gt;&lt;LI&gt;At the wake up, the function __boot() is called to restart MQX with our app.&lt;/LI&gt;&lt;LI&gt;At a certain size of application (flash and ram) we observed that the function boot is not working properly. That means the code is not restarting. The MCU freeze.&lt;/LI&gt;&lt;LI&gt;We implement a workaround: after calling this function: _lpm_set_operation_mode(LPM_OPERATION_MODE_STOP)), we call _lpm_set_operation_mode(LPM_OPERATION_MODE_RUN)). and we repalce the function __boot() by a custom reset function. This situation is a workaroud because we do not want to reset, but just restart.&lt;/LI&gt;&lt;LI&gt;When the function is not working properly, the MCU freeze and nothing happen (depending of the watch dog configuration, the MCU reset and restart normally, but it's not normal).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need help to understand what's happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;JF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 13:01:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/boot-function-stops-working/m-p/397486#M13350</guid>
      <dc:creator>jean-francoisle</dc:creator>
      <dc:date>2015-04-10T13:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: __boot() function stops working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/boot-function-stops-working/m-p/397487#M13351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is hard to say what could be reason for such behavior.&lt;/P&gt;&lt;P&gt;Idea1: Some pending interrupt could blocks MCU when it wake-ups. Please try disable all interrupts prior you call __boot function. e.g. by CPSID instruction (asm (CPSID f);).&lt;/P&gt;&lt;P&gt;Idea2: Problem could be in some transitions between clock modes. You can try set clock to default values after reset or switch to some non-conflict clock mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Theoretically you can try set some software breakpoint at enter from sleep mode, attach debugger and try debugging root cause of system hangs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MCU freeze in 100% cases or behavior is random?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&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>Thu, 16 Apr 2015 12:23:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/boot-function-stops-working/m-p/397487#M13351</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-04-16T12:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: __boot() function stops working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/boot-function-stops-working/m-p/397488#M13352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JF,&lt;/P&gt;&lt;P&gt;Please see if this posts helps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/403510"&gt;Problem of initialization of MQX after jumping to the start of MQX application ( _boot() )&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not use VLLSx mode so that once the LLWU wakes up processor it will do a reset exception?&amp;nbsp; RAM retention?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 20:32:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/boot-function-stops-working/m-p/397488#M13352</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-04-16T20:32:47Z</dc:date>
    </item>
  </channel>
</rss>

