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

Debugging nRF51822 application through UART using SDK8.1 and eclipse/gcc toolchain

I would like a working example of a simple application that uses soft_device (either S110 or S120) plus UART debugging. I have read many posts in this forum about this topic but it is difficult (so far impossible for me) to get a complete/end-to.end answer.

Constraints:

  • nRF51 SDK 8.1
  • Using eclipse/gcc toolchain as expalined in Tutorial devzone.nordicsemi.com/.../
  • Using a standalone module (no development kit) so UART pins need to be configurable (I am using Red Bear Lab BLE Nano module but other modules are also possible)

Thanks for your help!

Parents
  • It should be working in the ble examples in the sdk. Try the ble_app_hrs example and define ENABLE_DEBUG_LOG_SUPPORT, so that app_trace_init() in app_trace.h gets defined. Then call app_trace_init() from the top of main(). You should now see some activity on the RX_PIN_NUMBER and TX_PIN_NUMBER. You can set these pin definitions to what ever pin you want.

    It is documented here: developer.nordicsemi.com/.../a00169.html

    You should also check out RTT debugging if you are using a JLINK debugger: devzone.nordicsemi.com/.../

Reply
  • It should be working in the ble examples in the sdk. Try the ble_app_hrs example and define ENABLE_DEBUG_LOG_SUPPORT, so that app_trace_init() in app_trace.h gets defined. Then call app_trace_init() from the top of main(). You should now see some activity on the RX_PIN_NUMBER and TX_PIN_NUMBER. You can set these pin definitions to what ever pin you want.

    It is documented here: developer.nordicsemi.com/.../a00169.html

    You should also check out RTT debugging if you are using a JLINK debugger: devzone.nordicsemi.com/.../

Children
No Data