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

Porting code from SDK v15.0 to 17 - problem with ble_nus_data_send

I have a working code which implements a UART peripheral written originally with SDK15.0

I would like to port it to the latest SDK 17.02 

I can get advertisement and I can connect with a smartphone. 

I can write data from the smartphone to the UART, but the opposite direction doesn't work

I get error and reset

I found that the problem is in ble_nus_data_send

What could be the reason (difference between SDK15 to SDK17)?

Parents
  • Hello,

    It is as @awneil said, we will need the error message to identify the root cause of your issue.
    Could you make sure that DEBUG is defined in your preprocessor defines, like shown in the included image?

    This will make a debug statement be printed to your logger, when APP_ERROR_CHECK is passed an error code different from NRF_SUCCESS.
    Please make sure DEBUG is defined, and let me know what this error message reads. We may then begin looking into why this error message is generated.

    Looking forward to resolving this issue together!

    Best regards,
    Karl

Reply
  • Hello,

    It is as @awneil said, we will need the error message to identify the root cause of your issue.
    Could you make sure that DEBUG is defined in your preprocessor defines, like shown in the included image?

    This will make a debug statement be printed to your logger, when APP_ERROR_CHECK is passed an error code different from NRF_SUCCESS.
    Please make sure DEBUG is defined, and let me know what this error message reads. We may then begin looking into why this error message is generated.

    Looking forward to resolving this issue together!

    Best regards,
    Karl

Children
Related