<?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>MQX Software SolutionsのトピックRe: msgq_receive after printf causes unhandled interrupt</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/msgq-receive-after-printf-causes-unhandled-interrupt/m-p/188209#M3474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello PertM:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like you uderstand what does those memory dump message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you it is memory corrution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or could you instruct us how to understand?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read some article on hardfault but I have problem to understand them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;fzhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2012 23:14:53 GMT</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:date>2012-03-13T23:14:53Z</dc:date>
    <item>
      <title>msgq_receive after printf causes unhandled interrupt</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/msgq-receive-after-printf-causes-unhandled-interrupt/m-p/188207#M3472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using MQX 3.7 on Kinetis K60, standard output is connected to ttyf serial port and I have the following problem.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If I print debug info before the tasks is waiting for a message from message queue&lt;/P&gt;&lt;PRE&gt;_io_printf("wait for message");msg = _msgq_receive( KODEK_queue, 0);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I usually get the unhandled interrupt error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;*** UNHANDLED INTERRUPT ***Vector #: 0x03 Task Id: 0x10003 Td_ptr 0x1fff5fccPC: 0x000006ea LR: 0x00004d9f PSP: 0x1fff6758 MSP: 0x1fff45a8 PSR: 0x00000003Memory dump:0x1fff6758 : 0x00000000 0xdff2cff3 0x00000073 0x000000000x1fff6768 : 0x1fff77f8 0x00005145 0x00005474 0x810002000x1fff6778 : 0x00005145 0x00000020 0x00000000 0x000000000x1fff6788 : 0x00000000 0x00000000 0x00000000 0x000000000x1fff6798 : 0x00000000 0x00000000 0x00000000 0x000000000x1fff67a8 : 0x00000020 0x00000000 0x1fff6fa0 0x000000000x1fff67b8 : 0x1fff3e80 0x1fff6fac 0x00006f97 0x000000000x1fff67c8 : 0x00000000 0x00000000 0x1fff67fc 0xdff2cff3Memory dump:0x1fff45a8 : 0x1fff3e80 0x00000002 0x1fff3e80 0x000000020x1fff45b8 : 0xdff2cff3 0x1fff6804 0x1fff116a 0x00004ff90x1fff45c8 : 0x00000000 0x00000000 0x1fff4e0c 0x000006210x1fff45d8 : 0x1fff3e80 0x00000000 0x00000003 0x000000c00x1fff45e8 : 0x00000000 0xfffffffd 0x7374616b 0x7374616b0x1fff45f8 : 0x7374616b 0x0b5845a2 0x00000160 0x1fff41a40x1fff4608 : 0x0001ffff 0xb9df3c4d 0x604b9d36 0xcbde07cb0x1fff4618 : 0x8257e5b2 0x868ab5bc 0x45a2a288 0xcf2fbbc3&lt;/PRE&gt;&lt;P&gt;When I comment _io_printf function&lt;/P&gt;&lt;PRE&gt;//_io_printf("wait for message");msg = _msgq_receive( KODEK_queue, 0);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;the error does not raise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:39:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/msgq-receive-after-printf-causes-unhandled-interrupt/m-p/188207#M3472</guid>
      <dc:creator>Peca</dc:creator>
      <dc:date>2020-10-29T09:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: msgq_receive after printf causes unhandled interrupt</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/msgq-receive-after-printf-causes-unhandled-interrupt/m-p/188208#M3473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it seems like memory corruption due to small task stack.&lt;/P&gt;&lt;P&gt;_io_printf() function consumes a lot of stack in some configurations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PetrM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 21:39:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/msgq-receive-after-printf-causes-unhandled-interrupt/m-p/188208#M3473</guid>
      <dc:creator>PetrM</dc:creator>
      <dc:date>2011-12-14T21:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: msgq_receive after printf causes unhandled interrupt</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/msgq-receive-after-printf-causes-unhandled-interrupt/m-p/188209#M3474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello PertM:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like you uderstand what does those memory dump message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you it is memory corrution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or could you instruct us how to understand?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read some article on hardfault but I have problem to understand them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;fzhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 23:14:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/msgq-receive-after-printf-causes-unhandled-interrupt/m-p/188209#M3474</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2012-03-13T23:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: msgq_receive after printf causes unhandled interrupt</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/msgq-receive-after-printf-causes-unhandled-interrupt/m-p/188210#M3475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it just looked like the printf function caused the unhandled exception and I doubt there's a problem in serial driver. So as&amp;nbsp; most probable I see&amp;nbsp;the memory corruption and the origin could be in small task stack.&lt;/P&gt;&lt;P&gt;Anyway you can at least check the map file of your application to find functions into which the PC and LR registers point to, i.e. where the problem occured.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PetrM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 19:29:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/msgq-receive-after-printf-causes-unhandled-interrupt/m-p/188210#M3475</guid>
      <dc:creator>PetrM</dc:creator>
      <dc:date>2012-03-15T19:29:30Z</dc:date>
    </item>
  </channel>
</rss>

