This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to print on a mac ??

I am searching for long time how to inspect the prints in my code inside Segger , I went over many messages in this forum and nothing comes easy to me with this Segger thing :

NRF_LOG_DEBUG("hello\r\n"); /want to see this somewhere in real time

or just simply

printf ("hello\r\n");

Found out there is something called RTT Viewer.

Followed a very strange guide here

  1. He will print nothing even when I connect to the ble_uart app and send data from a phone. ( and what if I want to restart the board? then the connection will hand and I will never be able to print what happens in the beginning )

  2. Is there a way that is more appropriate to 2017 ? like for humans ? no terminal but a simple window to print inside Segger ?

I don't want to open terminal to print hello every time.

If I chose to be HW engineer I have to go back in time to 1993 ? :)

Parents
  • Segger Embedded Studio has the ability to print RTT embedded in to the debugger. Just choos Debug -> Go to enter debugger (or Build -> Build and Debug to build first). Then click the green triangle button or Debug -> Go to start execution from the top of main function. If you use for example NRF_LOG_INFO("Print something\r\n"), the text will appear in the Debug terminal window on the bottom of the debugger. Remember to initialize logging in main() by calling NRF_LOG_INIT() (in some examples this function is called from log_init()).

Reply
  • Segger Embedded Studio has the ability to print RTT embedded in to the debugger. Just choos Debug -> Go to enter debugger (or Build -> Build and Debug to build first). Then click the green triangle button or Debug -> Go to start execution from the top of main function. If you use for example NRF_LOG_INFO("Print something\r\n"), the text will appear in the Debug terminal window on the bottom of the debugger. Remember to initialize logging in main() by calling NRF_LOG_INIT() (in some examples this function is called from log_init()).

Children
Related