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

[nRF52832 + SDK15.2] NRF_FAULT_ID_SDK_ERROR

Hi, I'm Developing Custom Board with nRF52832.

When I execute my custom code (by referring to ble_app_template example), an error occured.

First, my hardware spec below,

  • MCU : nRF52832QFAA
  • SDK : nRF5_SDK_15.2.0_9412b96
  • SoftDevice : s132_nrf52_6.1.0_softdevice

The error is fault error. so, system processing "app_error_fault_handler".

then I check parameter in "app_error_fault_handler",

  • id : 0x00004001 (NRF_FAULT_ID_SDK_ERROR)
  • pc : 0x00000000
  • info : 0x20007BB8

I found this error is "NRF_FAULT_ID_SDK_ERROR".

but I don't know why this error ouccred, and How to fix it.

Best Regards

Parents
  • the fault error occured at peer_manager_init() function.

    static void peer_manager_init(void)
    {
        ble_gap_sec_params_t sec_param;
        ret_code_t           err_code;
    
        err_code = pm_init();
        APP_ERROR_CHECK(err_code);
    
        memset(&sec_param, 0, sizeof(ble_gap_sec_params_t));
    
        // Security parameters to be used for all security procedures.
        sec_param.bond           = SEC_PARAM_BOND;
        sec_param.mitm           = SEC_PARAM_MITM;
        sec_param.lesc           = SEC_PARAM_LESC;
        sec_param.keypress       = SEC_PARAM_KEYPRESS;
        sec_param.io_caps        = SEC_PARAM_IO_CAPABILITIES;
        sec_param.oob            = SEC_PARAM_OOB;
        sec_param.min_key_size   = SEC_PARAM_MIN_KEY_SIZE;
        sec_param.max_key_size   = SEC_PARAM_MAX_KEY_SIZE;
        sec_param.kdist_own.enc  = 1;
        sec_param.kdist_own.id   = 1;
        sec_param.kdist_peer.enc = 1;
        sec_param.kdist_peer.id  = 1;
    
        err_code = pm_sec_params_set(&sec_param);
        APP_ERROR_CHECK(err_code);
    
        err_code = pm_register(pm_evt_handler);
        APP_ERROR_CHECK(err_code);
    }

  • I found reason.

    #define SEC_PARAM_BOND 0

    to

    #define SEC_PARAM_BOND 1

    then worked.

Reply Children
No Data
Related