Hello,
I am trying to add application specific errors codes to the error handling framework in the nRF51K SDK. The documentation in sdk_errors.h says that a range is reserved for application specific use, but doesn't define what that is. I could pick an unused range and put my errors codes there, but that could cause a maintainability issue in the future. Is there a specific place to put them?
Another point of confusion for me here is that the documentation in sdk_errors.h indicates that for each 32 bit error code, the upper 16 bits represent the module and the lower 16 bits are the error reason and even indicate that various modules can use this scheme to generate the same error but also quickly identify the module it came from. The documentation also mentions that a module then reserves all 65K error code for it's use (i.e. 0xxxx0000 - 0xxxxxFFFF, where xxxx represents the module code. However later on in the file the sdk_module_codes for the DEVICE_MANAGER and MEMORY_MANAGER error bases are defined as 0x8000 and 0x8100 and simply added to the error code whereas I would have expected them to be 0x80000000 and 0x81000000. Is this an error in the header file or are all errors from the SDK considered the same "module".
Thanks.
Mike