<?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_exception: How know the vector source? in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433020#M14493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="230029" data-username="arnogir" href="https://community.nxp.com/people/arnogir"&gt;Arnaud&lt;/A&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you refer to below document, it describes how to debugging hard fault &amp;amp; other exceptions on MAR Cortex-M3 and ARM Cortex-M4 microcontrollers. And determining which Exception handler is executing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html" title="https://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html"&gt;Debugging and diagnosing hard faults on ARM Cortex-M CPUs&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2018 06:03:12 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2018-07-06T06:03:12Z</dc:date>
    <item>
      <title>__boot_exception: How know the vector source?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433015#M14488</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'm working on the TWRK60 with the Kinetis MK60FN1M0VLQ12.&lt;/P&gt;&lt;P&gt;I'm using MQX 4.2, KDS 3.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #303030; text-decoration: underline;"&gt;My project run correctly on the Tower board.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, we have made our own board, the only difference is the µC is a 150MHz: MK60FN1M0VLQ&lt;STRONG&gt;15&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;For the moment, MQX has the same clock configuration (120MHz).&lt;/P&gt;&lt;P&gt;I flash exactly the same code in both case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when my program running on my custom board, it fall in the _boot_exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- How know which is the vector number caused this call? (because in the vector table, many source is linked to this vector)&lt;/P&gt;&lt;P&gt;2- This exception is always generated here in bsp_cm.c file: (So main specific code is not yet running (main_task not called))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14459598949501017 jive_text_macro" data-renderedposition="365_8_1232_192" jivemacro_uid="_14459598949501017"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/*** ### MK60FN1M0VLQ12 "Cpu" init code ... ***/
&amp;nbsp; /*** PE initialization code after reset ***/
&amp;nbsp; /* SIM_SCGC6: RTC=1 */
&amp;nbsp; SIM_SCGC6 |= (uint32_t)0x20000000UL;
&amp;nbsp; if ((RTC_CR &amp;amp; RTC_CR_OSCE_MASK) == 0u) { /* Only if the OSCILLATOR is not already enabled */
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* RTC_CR: SC2P=0,SC4P=0,SC8P=0,SC16P=0 */
&amp;nbsp;&amp;nbsp;&amp;nbsp; RTC_CR &amp;amp;= (uint32_t)~0x3C00UL;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* RTC_CR: OSCE=1 */
&amp;nbsp;&amp;nbsp;&amp;nbsp; RTC_CR |= (uint32_t)0x0100UL;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* RTC_CR: CLKO=0 */
&amp;nbsp;&amp;nbsp;&amp;nbsp; RTC_CR &amp;amp;= (uint32_t)~0x0200UL;
&amp;nbsp; }&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jump to exception always occurs when I execute line 05 of this source code.&lt;/P&gt;&lt;P&gt;Have you any Idea why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 15:32:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433015#M14488</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-10-27T15:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: __boot_exception: How know the vector source?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433016#M14489</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;In fact, on my specific borad, the input VBat (which power the RTC RAM) is only linked to a battery cell.&lt;/P&gt;&lt;P&gt;Tower has diode with +3V3 to power when battery cell is not present.&lt;/P&gt;&lt;P&gt;On my board, the battery cell was not mounted so RTC not work correctly because not powered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 06:25:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433016#M14489</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-10-28T06:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: __boot_exception: How know the vector source?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433017#M14490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your input!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 17:43:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433017#M14490</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-10-28T17:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: __boot_exception: How know the vector source?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433018#M14491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For my information, Can I have a response to this question?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- How know which is the vector number caused this call? (because in the vector table, many source is linked to this vector)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 07:44:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433018#M14491</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-11-06T07:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: __boot_exception: How know the vector source?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433019#M14492</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 back with the same question because now, I really need to know the vector source number which cause the _boot_exception call.&lt;/P&gt;&lt;P&gt;Currently, the NVIC register (NVICISER, IABR etc..) are all set to 0x23000042... ????&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 12:05:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433019#M14492</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2018-07-03T12:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: __boot_exception: How know the vector source?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433020#M14493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="230029" data-username="arnogir" href="https://community.nxp.com/people/arnogir"&gt;Arnaud&lt;/A&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you refer to below document, it describes how to debugging hard fault &amp;amp; other exceptions on MAR Cortex-M3 and ARM Cortex-M4 microcontrollers. And determining which Exception handler is executing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html" title="https://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html"&gt;Debugging and diagnosing hard faults on ARM Cortex-M CPUs&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 06:03:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433020#M14493</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2018-07-06T06:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: __boot_exception: How know the vector source?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433021#M14494</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;Thank for this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But into it, like the code is given for FREE Rtos, we must made a minor adaptation:&lt;/P&gt;&lt;P&gt;The register declaration.&lt;/P&gt;&lt;P&gt;Code use "ldr r3, NVIC_INT_CTRL_CONST", but NVIC_INT_CTRL_CONST is not declared by MQX. I don't find any regsister which correspond to it into MQX declaration.&lt;/P&gt;&lt;P&gt;Could you help me about this point?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 06:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433021#M14494</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2018-07-06T06:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: __boot_exception: How know the vector source?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433022#M14495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;From the comments, NVIC_INT_CRTL_CONST is the address of the interrupt control register.&lt;/P&gt;&lt;PRE&gt;Default_Handler:&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: green;"&gt;/* Load the address of the interrupt control register into r3. */&lt;/SPAN&gt;&amp;nbsp; ldr r3, NVIC_INT_CTRL_CONST&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From below link, this address should be 0xe000e004.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337e/Cihcbadd.html" rel="nofollow noopener noreferrer" title="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337e/Cihcbadd.html" target="_blank"&gt;ARM Information Center&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 06:53:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/boot-exception-How-know-the-vector-source/m-p/433022#M14495</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2018-07-06T06:53:10Z</dc:date>
    </item>
  </channel>
</rss>

