adafruit / Adafruit_nRF52_Arduino

Adafruit code for the Nordic nRF52 BLE SoC on Arduino
Other
623 stars 497 forks source link

print log on RTT like NRF_LOG_INFO! #541

Closed tusharvb19 closed 4 years ago

tusharvb19 commented 4 years ago

Not the debugging but, simple printing on RTT is what I am looking for. This will be very helpful. I tried to find RTT in the repo but couldn't get any example, though I found some implementation here - https://github.com/adafruit/Adafruit_nRF52_Arduino/blob/569b9b21e600d8fbcaddd9f978ae0ec7e87ae5d6/cores/nRF5/sysview/SEGGER/SEGGER_RTT.c

pyro9 commented 4 years ago

if you #include in your sketch, you can use SEGGER_RTT_PutChar(0,c) where 0 is the terminal number and c is a character.

tusharvb19 commented 4 years ago

Thanks. Will use SEGGER_RTT_WriteString instead.