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

err_code=NRF_ERROR_INVALID_PARAM at SOFTDEVICE_HANDLER_INIT() function

Hi all, I found one issue with my custom nrf51422ble board. When I use my office PC and KEIL IDE, my custom board BLE is working but when I use my home PC KEIL, it's not working. When I tried to debug, I found out that the code stucked in SOFTDEVICE_HANDLER_INIT and the err_code is 0x07 (NRF_ERROR_INVALID_PARAM). But it's very strange when I flash the same code from my office PC. Please can anyone help?

Parents
  • Hi,

    Make sure that you have programmed identical softdevice binary, and that the entire project is the same (e.g. source and header files) and compiler version.

    You can always read out the entire flash content by calling "nrfjprog --readcode dump_1.hex" and compare the hex files to make sure they are identical. You can program it to the second board by calling "nrfjprog --program dump_1.hex".

    Best regards,
    Kenneth

Reply
  • Hi,

    Make sure that you have programmed identical softdevice binary, and that the entire project is the same (e.g. source and header files) and compiler version.

    You can always read out the entire flash content by calling "nrfjprog --readcode dump_1.hex" and compare the hex files to make sure they are identical. You can program it to the second board by calling "nrfjprog --program dump_1.hex".

    Best regards,
    Kenneth

Children
Related