This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

reaching NRF_BREAKPOINT_COND; in app_error_weak.c

When adding this line to codes  from an article here control reaches 

Example used is ble_app_hrs_pca10056_s140 on nrfDK2 , sdk 17 

==================added to advertising_init and to main() both , same result occurs -=========

ble_advdata_manuf_data_t manuf_data; //Variable to hold manufaturer specific data
uint8_t data[] = "SomeData!"; //Our data to advertise
manuf_data.company_identifier = 0x0059; //Nordics company ID
manuf_data.data.p_data = data;
manuf_data.data.size = sizeof(data);

===============================================

Line 100   NRF_BREAKPOINT_COND; in app_error_weak.c

NRF_BREAKPOINT_COND;
// On assert, the system can only recover with a reset.

Parents
  • Hello,

    We will need to find out exactly which function that returned the NRF_ERROR_INVALID_STATE error.

    Line 100   NRF_BREAKPOINT_COND; in app_error_weak.c

    NRF_BREAKPOINT_COND;
    // On assert, the system can only recover with a reset.

    Could you make sure to have DEBUG defined in your preprocessor defines for the common configuration, like shown in the included image?

    This will make the logger output a detailed error message whenever a non-NRF_SUCCESS error is passed to an APP_ERROR_CHECK. What does this error message say, and exactly which function returned the error that triggered the APP_ERROR_CHECK?

    Looking forward to resolving this issue together!

    Best regards,
    Karl

Reply
  • Hello,

    We will need to find out exactly which function that returned the NRF_ERROR_INVALID_STATE error.

    Line 100   NRF_BREAKPOINT_COND; in app_error_weak.c

    NRF_BREAKPOINT_COND;
    // On assert, the system can only recover with a reset.

    Could you make sure to have DEBUG defined in your preprocessor defines for the common configuration, like shown in the included image?

    This will make the logger output a detailed error message whenever a non-NRF_SUCCESS error is passed to an APP_ERROR_CHECK. What does this error message say, and exactly which function returned the error that triggered the APP_ERROR_CHECK?

    Looking forward to resolving this issue together!

    Best regards,
    Karl

Children
Related