Set up 1 Adafruit BLE Feather running stock central UART example from NORDIC SDK version 15.0`examples connected to host PC using USB
Set up 2 Adafruit BLE Feather running a custom application largely based on peripheral UART example from NORDIC SDK 15.0 again connected to host PC via USB
According to the description UART Central example the only way to find that a peripheral connected to it is via the LED 1
Is there a way to view the log out put from the peripheral and the central boards using the RTT viewer ? As I have not been able to get the sniffer work reliably to sniff the ttraffic
Both app_uart examples log the transition to connected and disconnected states at the Info log level in ble_nus_c_evt_handler and ble_evt_handler.
In sdk_config.h confirm the RTT log backend is selected and enable logging to the Info or Debug log level to get the connection state log messages.
For ex., within the relevant #ifndef/#endif wrappers use
#define NRF_LOG_BACKEND_RTT_ENABLED 1
#define NRF_LOG_DEFAULT_LEVEL 3
(I'm not sure if you need to set the default log level but you definitely do need to enable the RTT backend)
Best Regards, Howard
Thanks for the reply . Yes I have enabled RTT backend.
But my problem appears to be how do I force the Segger Software to see see two bLE feathers connected over USB.?
I understand it should bring up a dialog allowing me to choose a particular board but it does not . I can see an out put from the peripheral only and not the central board
Oh yeah you should be seeing a dialog like this:
when you start the viewer.
I do get the dialog .Looks like the serial number field is editable. I put in zero for both hoping for another popup to show up but it did not per this thread (https://devzone.nordicsemi.com/f/nordic-q-a/30732/how-to-use-two-rtt-viewers)
Where do these serial number come from ? I guess these come from the Jlink debuggers
If that is true then should I be using two debuggers?
Yes, the serial numbers come from the j-link labels. I put a 0 into the serial number field on my end and displayed the selection dialog mentioned in your link.
Sreedhar said:If that is true then should I be using two debuggers?
I believe you have to use two, or the equivalent such as with an nRF52-DK's embedded J-link brought out to your other board.