This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

Cannot add function in main.c

Hi, I would like to ask that, whenever I put my function in main.c, the borad become undiscoverable.

I'm using nRF51 with ble_app_uart_s110_pca10028, and below are my function and main

image description image description

Parents
  • what is the results of

    ble_nus_string_send() .. 
    

    which you put into err_code?

    the next line, as is discussed here 50 times a week, is APP_ERROR_CHECK() which will go to the error handler if err_code is not zero. That's the most likely place you've ended up. Use the debugger to find out where you are and how you got there.

Reply
  • what is the results of

    ble_nus_string_send() .. 
    

    which you put into err_code?

    the next line, as is discussed here 50 times a week, is APP_ERROR_CHECK() which will go to the error handler if err_code is not zero. That's the most likely place you've ended up. Use the debugger to find out where you are and how you got there.

Children
Related