CTL message queue Event not triggered
I use a
ctl_message_queue_post_nb function to pass a message, and I have used
ctl_message_queue_setup_events to associate the Queue with an event.
All works fine... most of the time, but after a short time, or a few dozen posts, the event doesn't get set anymore. If I manually set the event bit it all fires off nicely. But the posting of a new pointer to the Queue does not set the event. The Queue is also not empty and no event is being written.
I have tried understanding the ASM code, but fail to see where it's going.
Any ideas on how to debug this one?
Pete L.
-
Thanks Paul,
so if the event gets cleared for some reason and the queue has not been read, I need to poll the queue with
ctl_message_queue_num_used
and process what ever is there? Will add the code, but the previous behavior has stopped for some reason :-\
(sorry for the delay in reply, but I have been distracted by a "hardfault" which I'll post next.)
Thank you for your time.
Pete L.
Please sign in to leave a comment.
Comments
2 comments