Hello,
I know that this question has been asked a few times, but I am a little desperate after trying to get debug logging over the Virtual COM Port to work. Here are the steps that I did:
- I got myself a nRF51 USB Dongle (pca10031 board with nRF51422_xxAC chipset)
- I configured a new Project in Keil with all the necessarey libraries and a 120 Soft Device
- I wrote a main.c that toggles the onboard LED in an infinite loop and calls printf after each loop.
- I called app_trace_init() at the beginning to set up the debug UART connection
From looking at the app_trace_init function I gathered, that the Baud rate is 115200, as opposed to the Baud rate stated in the documentation (38400). I think that flow control is hardware? (UART_FLOW_CONTROL_ENABLED).
I configured Putty to use 8 data bits, 1 stop bit, and varied all other parameters but to no avail. I can only get garbage characters, but at least the length seems to be similar to the string that I am trying to trace.
Could you please point me in the right direction?
Thanks, Marius Heil