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

Problems with NRF_LOG or not full output in RTT Viewer.

Hi to everyone!

I have a problem with the NRF_LOG or with RTT Viewer. I wrote this simple code, just to test an output console.

int i = 0;
	
while (i< 100)
{
	NRF_LOG_INFO("%i", i);
	NRF_LOG_FLUSH();
	i++;
}

But, when I execute it, I only see in the J-Link RTT Viewer the 20 first results and twice.

0> <info> app: 0
0> <info> app: 1
0> <info> app: 2
0> <info> app: 3
0> <info> app: 4
0> <info> app: 5
0> <info> app: 6
0> <info> app: 7
0> <info> app: 8
0> <info> app: 9
0> <info> app: 10
0> <info> app: 11
0> <info> app: 12
0> <info> app: 13
0> <info> app: 14
0> <info> app: 15
0> <info> app: 16
0> <info> app: 17
0> <info> app: 18
0> <info> app: 19
0> <info> app: 20
0> <info> app: 0
0> <info> app: 1
0> <info> app: 2
0> <info> app: 3
0> <info> app: 4
0> <info> app: 5
0> <info> app: 6
0> <info> app: 7
0> <info> app: 8
0> <info> app: 9
0> <info> app: 10
0> <info> app: 11
0> <info> app: 12
0> <info> app: 13
0> <info> app: 14
0> <info> app: 15
0> <info> app: 16
0> <info> app: 17
0> <info> app: 18
0> <info> app: 19
0> <info> app: 20

I think it could be buffered somewhere but I don't know exactly what is happening.

Any Idea?

Thank in advance.

Parents Reply Children
No Data
Related