<?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 _event_open generates Unhandled Exception in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/event-open-generates-Unhandled-Exception/m-p/155391#M737</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 a newbie to MQX, and trying my first steps with this OS, and I am trying to activate a simple event by using the code below.&lt;/P&gt;&lt;P&gt;I manage to create an event by &lt;STRONG&gt;"_event_create"&lt;/STRONG&gt; (I can verify that event was initialized by using Keil's MQX OS Support "Events" window in debug mode).&lt;/P&gt;&lt;P&gt;However, when I step over the &lt;STRONG&gt;"event_open"&lt;/STRONG&gt;, the system hangs, and when I look at the debug window I see that the&lt;STRONG&gt; task status is "Unhandled Interrupt", TD = 0x1fff105c.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;How should I proceed from here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#define CONFIG_DB_INIT_STRING "ConfigDBInit_EventGroup"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;pointer event_configDbInit;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;_int_install_unexpected_isr();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;_int_unexpected_isr(0);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;error = _event_create(CONFIG_DB_INIT_STRING);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (error != MQX_OK)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\nevent_create (%s)failed", CONFIG_DB_INIT_STRING);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_block();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #ff0000;"&gt;error = _event_open(CONFIG_DB_INIT_STRING, event_configDbInit);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (error != MQX_OK)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\nTask error code is 0x%1x", _task_errno);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\nevent_open to %s failed", CONFIG_DB_INIT_STRING);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_block();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Lior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Oct 2012 14:37:29 GMT</pubDate>
    <dc:creator>panpwr</dc:creator>
    <dc:date>2012-10-28T14:37:29Z</dc:date>
    <item>
      <title>_event_open generates Unhandled Exception</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/event-open-generates-Unhandled-Exception/m-p/155391#M737</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 a newbie to MQX, and trying my first steps with this OS, and I am trying to activate a simple event by using the code below.&lt;/P&gt;&lt;P&gt;I manage to create an event by &lt;STRONG&gt;"_event_create"&lt;/STRONG&gt; (I can verify that event was initialized by using Keil's MQX OS Support "Events" window in debug mode).&lt;/P&gt;&lt;P&gt;However, when I step over the &lt;STRONG&gt;"event_open"&lt;/STRONG&gt;, the system hangs, and when I look at the debug window I see that the&lt;STRONG&gt; task status is "Unhandled Interrupt", TD = 0x1fff105c.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;How should I proceed from here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#define CONFIG_DB_INIT_STRING "ConfigDBInit_EventGroup"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;pointer event_configDbInit;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;_int_install_unexpected_isr();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;_int_unexpected_isr(0);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;error = _event_create(CONFIG_DB_INIT_STRING);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (error != MQX_OK)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\nevent_create (%s)failed", CONFIG_DB_INIT_STRING);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_block();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #ff0000;"&gt;error = _event_open(CONFIG_DB_INIT_STRING, event_configDbInit);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (error != MQX_OK)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\nTask error code is 0x%1x", _task_errno);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\nevent_open to %s failed", CONFIG_DB_INIT_STRING);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_block();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Lior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 14:37:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/event-open-generates-Unhandled-Exception/m-p/155391#M737</guid>
      <dc:creator>panpwr</dc:creator>
      <dc:date>2012-10-28T14:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: _event_open generates Unhandled Exception</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/event-open-generates-Unhandled-Exception/m-p/155392#M738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lior,&lt;/P&gt;&lt;P&gt;You have:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #ff0000;"&gt;error = _event_open(CONFIG_DB_INIT_STRING, event_configDbInit);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #ff0000;"&gt;try:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #ff0000;"&gt;&lt;EM&gt;&lt;STRONG style="color: #ff0000;"&gt;error = _event_open(CONFIG_DB_INIT_STRING, &amp;amp;event_configDbInit);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can look at the following example to compare:&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale MQX 3.8\mqx\examples\event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found learning the RTOS good to start with chapter #3 of the MQXUG.pdg in C:\Freescale\Freescale MQX 3.8\doc\mqx .&amp;nbsp; It will walk you through many simple RTOS example located in the ~\mqx\examples path.&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>Tue, 30 Oct 2012 19:23:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/event-open-generates-Unhandled-Exception/m-p/155392#M738</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2012-10-30T19:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: _event_open generates Unhandled Exception</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/event-open-generates-Unhandled-Exception/m-p/155393#M739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you David, I haven't noticed this. Probably because &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;event_configDbInit&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt; is defined as a pointer, but I haven't noticed that I should send pointer-to-pointer parameter (pointer _PTR_)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually learn using this guide and the supplied examples, which are pretty good for basic understanding. However, are there any online/video courses which you could refer me to, in your website or community?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Lior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 09:24:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/event-open-generates-Unhandled-Exception/m-p/155393#M739</guid>
      <dc:creator>panpwr</dc:creator>
      <dc:date>2012-10-31T09:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: _event_open generates Unhandled Exception</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/event-open-generates-Unhandled-Exception/m-p/155394#M740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lior,&lt;/P&gt;&lt;P&gt;Lots of training to find....keyword "find".&lt;/P&gt;&lt;P&gt;Our technical support page has a link to training of various methods:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/homepage.jsp?code=TRAINING_HOME"&gt;http://www.freescale.com/webapp/sps/site/homepage.jsp?code=TRAINING_HOME&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MQX basics online training:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/training_information.jsp?code=WBNR_VFTF09_AZ146"&gt;http://www.freescale.com/webapp/sps/site/training_information.jsp?code=WBNR_VFTF09_AZ146&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MQX Product page has many links:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/homepage.jsp?code=MQX_HOME&amp;amp;tid=vanMQX"&gt;http://www.freescale.com/webapp/sps/site/homepage.jsp?code=MQX_HOME&amp;amp;tid=vanMQX&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YouTube:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.youtube.com/user/freescale/videos?view=0"&gt;http://www.youtube.com/user/freescale/videos?view=0&lt;/A&gt;&lt;/P&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>Wed, 31 Oct 2012 13:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/event-open-generates-Unhandled-Exception/m-p/155394#M740</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2012-10-31T13:32:50Z</dc:date>
    </item>
  </channel>
</rss>

