Skip to content

device_get_binding() return NULL #29241

Answered by mbolivar-nordic
mejtejt asked this question in Q&A
Discussion options

You must be logged in to vote

There are two reasons why device_get_binding() may return NULL:

  1. There is no such device
  2. The device's initialization function failed

Since from your report it looks like there is such a device, I assume its initialization function failed. You will need to add printlines or attach a debugger to that function and step through to figure out why.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mejtejt
Comment options

Answer selected by mejtejt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants