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)?

  • Hello again,

    Thank you for clarifying about the differentiation between your previous configuration and the current one. 

    Avi said:
    It maybe an issue of RAM size....

    This might very well be a memory issue. Which SoftDevice were you using in your previous project, and which SoftDevice are you using now?
    Could you share with me the section placement macros of your project, along with any changes to the flash_placement file ( if you have made any )?

    Avi said:
    I cannot start the peripheral 

    Are you getting an error when this happens? I am guessing that an error message is written to your logger output ( if you have DEBUG enabled, as explained previously ) when you attempt to initialize the device with too little memory allocated.
    This error message might also tell you how to resolve this issue.

    Looking forward to resolving this issue together!

    Best regards,
    Karl

Related