what can i do when i meet a error code,is there have related manuals? hts example, nrf tools HTM
Well that question isn't any much more helpful. Where are you getting the error codes, on the phone or on the nrf51822? If on the 51822 what function are you running which is returning those codes?
In general all the error codes are documented in the documentation and they are all in the header files too, if these are errors you're getting from softdevice calls.