<?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: Int Unexpected ISR not outputting? in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425539#M14221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;Please make below change.&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14437382698834392 jive_text_macro" data-renderedposition="49_-263_933_47" jivemacro_uid="_14437382698834392"&gt;&lt;/PRE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;fgets(input_buffer, 64, config_file);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;sscanf(input_buffer, "%d %d %d %d %d %d", &amp;amp;one, &amp;amp;two, &amp;amp;three, &amp;amp;four, &amp;amp;five, &amp;amp;six);&lt;/TD&gt;&lt;TD&gt;//DES was&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;sscanf(input_buffer, "%d %d %d %d %d %d", one, two, three, four, five, six); &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&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, 01 Oct 2015 22:24:37 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2015-10-01T22:24:37Z</dc:date>
    <item>
      <title>Int Unexpected ISR not outputting?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425529#M14211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using MQX 4.2 and CodeWarrior 10.6.4 with a Kinetis K64F Freedom board and an IAR systems J-link. My code for some reason seems to be throwing an interrupt during some string operations (like scanf() to parse a string), which causes my main task to throw an MQX_UNHANDLED_INTERRUPT (0x00000041) error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using int_install_unexpected_isr() to install the int_unexpected_isr() and output information about this unhandled interrupt. However, I don't see any output either on the console in codewarrior during debugging, nor in the output from the ttyd over a virtual com port on my PCs terminal window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could try and install an exception handler like int_exception_isr() as described here (&lt;A href="https://community.nxp.com/docs/DOC-93270"&gt;General Technical MQX FAQ)) &lt;/A&gt;but that's a fair bit more complicated, and I'm not sure exactly what that would entail.&amp;nbsp; This post (&lt;A href="https://community.nxp.com/thread/305612"&gt;Unhandled Interrupt&lt;/A&gt; ) shows an example implementation but I'm not sure it's up to date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the question is really this: What is the best way to track down the source of an unhandled interrupt?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 20:44:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425529#M14211</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-09-30T20:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Int Unexpected ISR not outputting?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425530#M14212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First we suggest our customers add _int_install_unexpected_isr (),&amp;nbsp; then you will know what the vector cause this issue through the terminal. But you didn't see any output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, you also can use break point and check the MCU registers directly. I received several tickets about the unhandled interrupt source detection, in the end customer found it is a bug in his application code, most of time , it is a memory issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend you read the following document, I think it is helpful for you to trace this issue.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html" title="http://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; &lt;/P&gt;&lt;P&gt;&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>Thu, 01 Oct 2015 07:55:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425530#M14212</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2015-10-01T07:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Int Unexpected ISR not outputting?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425531#M14213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is almost certainly a memory issue with my application, I'm just struggling to have any clue how I would track it down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I installed the exception handling code mentioned in the thread I linked, and now I have a bit of information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14437161268081835 jive_macro_code jive_text_macro" data-renderedposition="92_8_1056_1056" jivemacro_uid="_14437161268081835"&gt;&lt;P&gt;Opps, bad thing happened.&lt;/P&gt;&lt;P&gt;The exception [HardFault] throw by TASK 0x10003&lt;/P&gt;&lt;P&gt;Dump the exception frame as :&lt;/P&gt;&lt;P&gt;R0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xffffffff&lt;/P&gt;&lt;P&gt;R1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000a&lt;/P&gt;&lt;P&gt;R2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000b&lt;/P&gt;&lt;P&gt;R3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000a&lt;/P&gt;&lt;P&gt;R12:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;LR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006de5&lt;/P&gt;&lt;P&gt;PC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006e62&lt;/P&gt;&lt;P&gt;PSR:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x61000000&lt;/P&gt;&lt;P&gt;Opps, bad thing happened.&lt;/P&gt;&lt;P&gt;The exception [HardFault] throw by TASK 0x10003&lt;/P&gt;&lt;P&gt;Dump the exception frame as :&lt;/P&gt;&lt;P&gt;R0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xffffffff&lt;/P&gt;&lt;P&gt;R1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000a&lt;/P&gt;&lt;P&gt;R2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00007530&lt;/P&gt;&lt;P&gt;R3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00007530&lt;/P&gt;&lt;P&gt;R12:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;LR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006de5&lt;/P&gt;&lt;P&gt;PC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006e62&lt;/P&gt;&lt;P&gt;PSR:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x61000000&lt;/P&gt;&lt;P&gt;Opps, bad thing happened.&lt;/P&gt;&lt;P&gt;The exception [HardFault] throw by TASK 0x10003&lt;/P&gt;&lt;P&gt;Dump the exception frame as :&lt;/P&gt;&lt;P&gt;R0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xffffffff&lt;/P&gt;&lt;P&gt;R1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000a&lt;/P&gt;&lt;P&gt;R2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000005&lt;/P&gt;&lt;P&gt;R3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;/P&gt;&lt;P&gt;R12:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;LR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006de5&lt;/P&gt;&lt;P&gt;PC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006e62&lt;/P&gt;&lt;P&gt;PSR:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x61000000&lt;/P&gt;&lt;P&gt;Opps, bad thing happened.&lt;/P&gt;&lt;P&gt;The exception [HardFault] throw by TASK 0x10003&lt;/P&gt;&lt;P&gt;Dump the exception frame as :&lt;/P&gt;&lt;P&gt;R0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xffffffff&lt;/P&gt;&lt;P&gt;R1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000a&lt;/P&gt;&lt;P&gt;R2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000002&lt;/P&gt;&lt;P&gt;R3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;/P&gt;&lt;P&gt;R12:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;LR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006de5&lt;/P&gt;&lt;P&gt;PC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006e62&lt;/P&gt;&lt;P&gt;PSR:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x61000000&lt;/P&gt;&lt;P&gt;Opps, bad thing happened.&lt;/P&gt;&lt;P&gt;The exception [HardFault] throw by TASK 0x10003&lt;/P&gt;&lt;P&gt;Dump the exception frame as :&lt;/P&gt;&lt;P&gt;R0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xffffffff&lt;/P&gt;&lt;P&gt;R1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000a&lt;/P&gt;&lt;P&gt;R2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000078&lt;/P&gt;&lt;P&gt;R3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;R12:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;LR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006de5&lt;/P&gt;&lt;P&gt;PC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006e62&lt;/P&gt;&lt;P&gt;PSR:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x61000000&lt;/P&gt;&lt;P&gt;Opps, bad thing happened.&lt;/P&gt;&lt;P&gt;The exception [HardFault] throw by TASK 0x10003&lt;/P&gt;&lt;P&gt;Dump the exception frame as :&lt;/P&gt;&lt;P&gt;R0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xffffffff&lt;/P&gt;&lt;P&gt;R1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000a&lt;/P&gt;&lt;P&gt;R2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x000000f0&lt;/P&gt;&lt;P&gt;R3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;R12:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;LR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006de5&lt;/P&gt;&lt;P&gt;PC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006e62&lt;/P&gt;&lt;P&gt;PSR:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x61000000&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Task 0x10003 is my main task (I'm not sure how it got bumped from 0x10001, but that's a mystery for another time), and that's the task that calls sscanf() when it throws the hard fault. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll read through the page you linked, but I'm also wondering where I can get the documentation on what's output above. I'm assuming they're registers relating to the interrupt?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what I should be watching to see what causes the fault? Just step through and into functions until something triggers it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 16:18:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425531#M14213</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-10-01T16:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Int Unexpected ISR not outputting?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425532#M14214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The break; call on line 444 of io_scanl.c is where the hardfault gets thrown. I'm not sure what I'm doing wrong here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 16:31:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425532#M14214</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-10-01T16:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Int Unexpected ISR not outputting?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425533#M14215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;made a change and now get this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14437187904913904" data-renderedposition="50_8_1056_880" jivemacro_uid="_14437187904913904"&gt;&lt;P&gt;Opps, bad thing happened.&lt;/P&gt;&lt;P&gt;The exception [HardFault] throw by TASK 0x10003&lt;/P&gt;&lt;P&gt;Dump the exception frame as :&lt;/P&gt;&lt;P&gt;R0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xffffffff&lt;/P&gt;&lt;P&gt;R1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000a&lt;/P&gt;&lt;P&gt;R2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000b&lt;/P&gt;&lt;P&gt;R3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;/P&gt;&lt;P&gt;R12:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;LR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006db5&lt;/P&gt;&lt;P&gt;PC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006e32&lt;/P&gt;&lt;P&gt;PSR:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x61000000&lt;/P&gt;&lt;P&gt;Opps, bad thing happened.&lt;/P&gt;&lt;P&gt;The exception [HardFault] throw by TASK 0x10003&lt;/P&gt;&lt;P&gt;Dump the exception frame as :&lt;/P&gt;&lt;P&gt;R0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xffffffff&lt;/P&gt;&lt;P&gt;R1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000a&lt;/P&gt;&lt;P&gt;R2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00007530&lt;/P&gt;&lt;P&gt;R3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xfffffffd&lt;/P&gt;&lt;P&gt;R12:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;LR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006db5&lt;/P&gt;&lt;P&gt;PC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006e32&lt;/P&gt;&lt;P&gt;PSR:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x61000000&lt;/P&gt;&lt;P&gt;Opps, bad thing happened.&lt;/P&gt;&lt;P&gt;The exception [HardFault] throw by TASK 0x10003&lt;/P&gt;&lt;P&gt;Dump the exception frame as :&lt;/P&gt;&lt;P&gt;R0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xffffffff&lt;/P&gt;&lt;P&gt;R1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000a&lt;/P&gt;&lt;P&gt;R2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000005&lt;/P&gt;&lt;P&gt;R3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;R12:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;LR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006db5&lt;/P&gt;&lt;P&gt;PC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006e32&lt;/P&gt;&lt;P&gt;PSR:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x61000000&lt;/P&gt;&lt;P&gt;Opps, bad thing happened.&lt;/P&gt;&lt;P&gt;The exception [HardFault] throw by TASK 0x10003&lt;/P&gt;&lt;P&gt;Dump the exception frame as :&lt;/P&gt;&lt;P&gt;R0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xffffffff&lt;/P&gt;&lt;P&gt;R1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000a&lt;/P&gt;&lt;P&gt;R2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000002&lt;/P&gt;&lt;P&gt;R3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;R12:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;LR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006db5&lt;/P&gt;&lt;P&gt;PC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006e32&lt;/P&gt;&lt;P&gt;PSR:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x61000000&lt;/P&gt;&lt;P&gt;Opps, bad thing happened.&lt;/P&gt;&lt;P&gt;The exception [HardFault] throw by TASK 0x10003&lt;/P&gt;&lt;P&gt;Dump the exception frame as :&lt;/P&gt;&lt;P&gt;R0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xffffffff&lt;/P&gt;&lt;P&gt;R1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0000000a&lt;/P&gt;&lt;P&gt;R2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x000000f0&lt;/P&gt;&lt;P&gt;R3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;R12:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;LR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006db5&lt;/P&gt;&lt;P&gt;PC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00006e32&lt;/P&gt;&lt;P&gt;PSR:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x61000000&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My calls are this:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14437188129463132 jive_macro_code jive_text_macro" data-renderedposition="972_8_1056_32" jivemacro_uid="_14437188129463132"&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14437188587472939" data-renderedposition="972_67_997_32" jivemacro_uid="_14437188587472939"&gt;&lt;P&gt;fgets(input_buffer, 64, config_file);&lt;/P&gt;&lt;P&gt;sscanf(input_buffer, "%d %d %d %d %d %d", one, two, three, four, five, six); &lt;/P&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file contains "11 30000 5 2 120 240"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input_buffer contains "11 30000 5 2 120 240&amp;nbsp; "&lt;/P&gt;&lt;P&gt;and the values become &lt;/P&gt;&lt;P&gt;one == 1&lt;/P&gt;&lt;P&gt;two == 4294967293&lt;/P&gt;&lt;P&gt;three == 0&lt;/P&gt;&lt;P&gt;four == 0&lt;/P&gt;&lt;P&gt;five == 536813584&lt;/P&gt;&lt;P&gt;six == 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 17:07:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425533#M14215</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-10-01T17:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Int Unexpected ISR not outputting?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425534#M14216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;So without sscanf() it works but with it it does not?&lt;/P&gt;&lt;P&gt;If yes, then try increasing your task stack size.&lt;/P&gt;&lt;P&gt;I have been bitten by this kind of issue before.&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, 01 Oct 2015 18:15:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425534#M14216</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-10-01T18:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Int Unexpected ISR not outputting?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425535#M14217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortinately, I've stepped through the code and the main task (which is believes is causing the the hardfault based on the exception code) and that doesn't seem to be the case. Although I have many tasks this issue happens early in startup so only one other task is running at this point aside from Main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stepping through the code, none of the stack usages change except the interrupt stack changes from 2x% to 83% when the interrupt and exception handling occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error_log_task 88%&lt;/P&gt;&lt;P&gt;_mqx_idle_task 36%&lt;/P&gt;&lt;P&gt;main 28%&lt;/P&gt;&lt;P&gt;interrupt 83%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I increase the error_log_task stack size It changes to&amp;nbsp; 58% usage, but the hard fault still occurs. In fact, preventing the error_log_task from starting so only Main and Idle are running and the same problem occurs. The stack size is 4800 in the main task because it takes on more responsibility later. The char arrays are only 64 characters long.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 18:34:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425535#M14217</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-10-01T18:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Int Unexpected ISR not outputting?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425536#M14218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Removing the sscanf() call no longer generates a hardfault, but it also prevents me from parsing the string and doing what I need to. I've had similar problems with other string related functions here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 18:38:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425536#M14218</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-10-01T18:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Int Unexpected ISR not outputting?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425537#M14219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;Can you attach the example code?&lt;/P&gt;&lt;P&gt;You have to click the "Use advanced editor" link in upper right hand corner and then Attach in new window at bottom right.&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, 01 Oct 2015 18:43:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425537#M14219</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-10-01T18:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Int Unexpected ISR not outputting?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425538#M14220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the project. There's a lot more in there, but the config.c, and main_task.c, files are the parts that get touched here. Also the SDcard handling code, in etc_sd.h/.c. There are some warnings for io_part_mgs_install() implicitly declared I haven't been able to clear up, but it doesn't stop the SDcard from installing and working properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 19:18:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425538#M14220</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-10-01T19:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Int Unexpected ISR not outputting?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425539#M14221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;Please make below change.&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14437382698834392 jive_text_macro" data-renderedposition="49_-263_933_47" jivemacro_uid="_14437382698834392"&gt;&lt;/PRE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;fgets(input_buffer, 64, config_file);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;sscanf(input_buffer, "%d %d %d %d %d %d", &amp;amp;one, &amp;amp;two, &amp;amp;three, &amp;amp;four, &amp;amp;five, &amp;amp;six);&lt;/TD&gt;&lt;TD&gt;//DES was&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;sscanf(input_buffer, "%d %d %d %d %d %d", one, two, three, four, five, six); &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&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, 01 Oct 2015 22:24:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425539#M14221</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-10-01T22:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Int Unexpected ISR not outputting?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425540#M14222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was exactly the issue. Now I feel silly. Thinking about that now it makes perfect sense. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for looking that over and pointing out my silly mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 15:07:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Int-Unexpected-ISR-not-outputting/m-p/425540#M14222</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-10-05T15:07:49Z</dc:date>
    </item>
  </channel>
</rss>

