This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

using mailboxes or semaphores causes crash

Hi, if I make any calls to mailboxes or semaphores, my application crashes. I can't even debug what happenned, all I get is "Could not stop ARM device!".

If I comment out the calls to mailboxes (e.g. os_mbx_send) and semaphores (e.g. os_sem_wait) everything works fine.

And yes, I am calling the init functions for the mailboxes and semaphores, so that's not the problem.

Any ideas? I can post some of the code if need be. Thanks.

-Mike

Parents
  • we first saw this problem as part of a very complex application that died with no apparent reason so we could not really tell why (it was all one large spaghetti - our own mistakes were interleaved!). sometimes an undef exception, sometimes the kernel hung in setting of a task priority, you name it. so just 3 days ago I decided that I had enough of this and managed to give Keil what they have been asking me for months now (this is an old problem!) - a simple test case. it took me 15 minutes to write. I swear.

Reply
  • we first saw this problem as part of a very complex application that died with no apparent reason so we could not really tell why (it was all one large spaghetti - our own mistakes were interleaved!). sometimes an undef exception, sometimes the kernel hung in setting of a task priority, you name it. so just 3 days ago I decided that I had enough of this and managed to give Keil what they have been asking me for months now (this is an old problem!) - a simple test case. it took me 15 minutes to write. I swear.

Children