why k_object_access_grant() execute fail #62187
Answered
by
mcscholtz
frankey2009
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
mcscholtz
Sep 5, 2023
Replies: 1 comment 4 replies
-
I am having the same problem with Zephyr 3.4. I got it to work for regular kernel objects such as mutex's by dynamically allocating them using e.g
Should work for the timer also, you can also try initializing it first and see if that works. However I cannot get it to work for any device drivers which are all static objects. It behaves like you described above and I cannot figure out why. Only making them public objects works which is not what I want to do. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
frankey2009
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am having the same problem with Zephyr 3.4. I got it to work for regular kernel objects such as mutex's by dynamically allocating them using
k_object_alloc
e.g
Should work for the timer also, you can also try initializing it first and see if that works.
However I cannot get it to work for any device drivers which are all static objects. It behaves like you described above and I cannot figure out why. Only making them public objects works which is not what I want to do.