Can't use ble_app_uart example on my project

6378.sdk_config.h

I'm, trying to use the ble_app_uart example for SDK v17.1. I can run the example correctly, but when I try to copy-paste the main code, I can't use the UART. I normally send a string via BLE and it echoes over UART, but when i move the example to my own project it just echoes the first character, and then suddenly disconnects. Could this be due to some sdk_config #define? i have the same code as the ble_app_uart example BUT with the BSP lines removed.

This my error log for when i connect and send a string.

Parents
  • Hi,

    I see you get a Fatal error. Also, it look slike you are using Segger Embedded Studio, and in that case the easiest way to get more debug information is to select the Debug build configuration in the GUI which will (among other things) build the project with DEBUG defined. And with that, you should see the file name and line number as well as the error code. What do you see then? Which function returned the error code?

Reply
  • Hi,

    I see you get a Fatal error. Also, it look slike you are using Segger Embedded Studio, and in that case the easiest way to get more debug information is to select the Debug build configuration in the GUI which will (among other things) build the project with DEBUG defined. And with that, you should see the file name and line number as well as the error code. What do you see then? Which function returned the error code?

Children
No Data
Related