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

Driver Error Interpretation

Hi Nordic, 

how do i interpret properly return errors? I l know that it depends on the base address but sometimes it does not correlate at all. 

For example, currently the nrfx_spim_xfer() function returns a 16 = 0x10 as an error but this does not correlate to any error on the list. I assume it's the NRFX_ERROR_INVALID_ADDR. 

However, this one is defined as:  NRFX_ERROR_INVALID_ADDR = (NRFX_ERROR_BASE_NUM + 10), ///< Bad memory address.

That 10 does not  seam to be in hex, but in decimal, so it won't correspond to the same error. Does it? 

Maybe I'm totally off here but it's a question that I've had for a long time now. 

I'm working with the sdk 15.3

Thanks in advance.

Related