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

I am getting a hard fault before main with os_sem or os_mut functions

Hello all,
I am trying to protect my display device with a mutex or semaphore. When I add functions (os_sem or os_mut) to my object the project compiles fine, but I get into the HardFault_Handler before I even hit main. It seems like the presence of these function calls in an c++ Object causes the problem. If I call from outside an Object like in a task loop, then there is no problem. Is there something I can do?

Thanks!
Ben