I'm trying to use RTT for debug printing and having some trouble. I'm using the nrf51-ble-app-lbs
example app that goes with App Note 36. I've added the RTT code from www.segger.com/jlink-real-time-terminal.html, and Added some debug logging.
When I flash the chip and boot up regularly I can connect over BLE, but when I try to connect to the RTT stream my debugging log tells me that it gets as far as calling sd_app_evt_wait()
and then it never wakes up. I don't see any further debug info and the device stops doing BLE advertisements.
Here's how I'm connecting to the RTT stream:
- Power-cycle the chip
- run
JLinkGDBServer -device nrf51822 -if swd -speed 1000 -port 2331
to connect to the JLINK - run
JLinkRTTClient
to connect to the GDB server
Any thoughts as to what's going on? I know there are some issues with breakpoints on an app that uses the SoftDevice, but I don't need to set breakpoints, I just want to connect to RTT.