This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

osSignalWait crashes when called from a thread created

Hi,

I ran into this issue where I signals threads in my application and got a crash because custom_data is NULL for my thread.

I then ran the test cmsis_v1 related to signals and it went fine until I modified it to signal the thread 1 from the main thread... the thread 1 crashes when it waits in 

osSignalWait because it accesses to a null pointer with the k_thread's custom_data.
Could you please check?

Please note that the use case seems ok if I build manually a osThreadDef_t for the main thread and assigns it to its custom_data as well as assign each thread its own thread def to its custom_data.

Parents Reply Children
Related