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

could not connect with RTT

hi team,

i have tried to connect my device with RTT. i could not connect. i just followed the instruction as below link

devzone.nordicsemi.com/.../

if i insert the function( SEGGER_RTT_WriteString(0, "Hello World!\n"); ) in main function loop and also SEGGER_RTT_printf, there is no response from device after flash the hex file. if i comment the line of function of segger_RTT , it will work. bluetooth doesn't advertise , led doesn't blink.

please any only help i need to check my app in runtime trace.

thanks advance,

Parents
  • I take it you're using RTT without going through nrf_log? If so, have you initialised the RTT, i.e.,:

    SEGGER_RTT_ConfigUpBuffer(0, NULL, NULL, 0, SEGGER_RTT_MODE_NO_BLOCK_TRIM);
    

    It would also be a good idea to step into the SEGGER_RTT_* functions and check if they are actually being compiled in (otherwise, might need some other defines present).

Reply
  • I take it you're using RTT without going through nrf_log? If so, have you initialised the RTT, i.e.,:

    SEGGER_RTT_ConfigUpBuffer(0, NULL, NULL, 0, SEGGER_RTT_MODE_NO_BLOCK_TRIM);
    

    It would also be a good idea to step into the SEGGER_RTT_* functions and check if they are actually being compiled in (otherwise, might need some other defines present).

Children
No Data
Related