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

right way to log SEGGER RTT output into file

how can I store outputs sent from JLINK SEGGER_RTT to a file?

how can I send data on RTT channel 1, is there any instruction for that?

/** loop */
sprintf (buffer, "%d;%d;%d;%d;%d;%d;%d;%d;%d\n",
            x_raw_acc, y_raw_acc, z_raw_acc,
            x_raw_ger, y_raw_ger, z_raw_ger,
            x_raw_mag, y_raw_mag, z_raw_mag);
SEGGER_RTT_WriteString(0,buffer);
nrf_delay_ms(100);

RTT Logger output

image description

Related