Hello,
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.
I manage to create an event by "_event_create" (I can verify that event was initialized by using Keil's MQX OS Support "Events" window in debug mode).
However, when I step over the "event_open", the system hangs, and when I look at the debug window I see that the task status is "Unhandled Interrupt", TD = 0x1fff105c.
How should I proceed from here?
Here is the code:
#define CONFIG_DB_INIT_STRING "ConfigDBInit_EventGroup"
pointer event_configDbInit;
_int_install_unexpected_isr();
_int_unexpected_isr(0);
error = _event_create(CONFIG_DB_INIT_STRING);
if (error != MQX_OK)
{
printf("\nevent_create (%s)failed", CONFIG_DB_INIT_STRING);
_task_block();
}
error = _event_open(CONFIG_DB_INIT_STRING, event_configDbInit);
if (error != MQX_OK)
{
printf("\nTask error code is 0x%1x", _task_errno);
printf("\nevent_open to %s failed", CONFIG_DB_INIT_STRING);
_task_block();
}
Thanks,
Lior.