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
  • <error> app: ERROR 12 [NRF_ERROR_DATA_SIZE] at C:\nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_hrs\main.c:894
    PC at: 0x00032197
    <error> app: End of error report
    <error> app: ERROR 12 [NRF_ERROR_DATA_SIZE] at C:\nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_hrs\main.c:894
    PC at: 0x00032197
    <error> app: End of error report

    The shortcut was opening SDK version15 example,  in sdk17 there is no issue.

  • consulting99 said:
    <error> app: ERROR 12 [NRF_ERROR_DATA_SIZE] at C:\nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_hrs\main.c:894
    PC at: 0x00032197

    Which function is returning the error code that triggers the APP_ERROR_CHECK at line 894 of main.c?
    Since this happened after you edited the advertising data I suspect that you are trying to fit more than 31 bytes into the advertising data.
    How many bytes total are you trying to advertise? Please keep in mind that every new data field (such as name, appearance, tx power, manufacturer specific data) will each require 2 bytes overhead.

    consulting99 said:
    The shortcut was opening SDK version15 example,  in sdk17 there is no issue.

    I do not understand what you mean by this, are you using both nRF5 SDK v15 and v17? Please elaborate

    Best regards,
    Karl

Reply
  • consulting99 said:
    <error> app: ERROR 12 [NRF_ERROR_DATA_SIZE] at C:\nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_hrs\main.c:894
    PC at: 0x00032197

    Which function is returning the error code that triggers the APP_ERROR_CHECK at line 894 of main.c?
    Since this happened after you edited the advertising data I suspect that you are trying to fit more than 31 bytes into the advertising data.
    How many bytes total are you trying to advertise? Please keep in mind that every new data field (such as name, appearance, tx power, manufacturer specific data) will each require 2 bytes overhead.

    consulting99 said:
    The shortcut was opening SDK version15 example,  in sdk17 there is no issue.

    I do not understand what you mean by this, are you using both nRF5 SDK v15 and v17? Please elaborate

    Best regards,
    Karl

Children
  • just this lines I copied to add my custom data 

    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)

Related