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

Why NRF_LOG_INFO is going crazy ?

I think I found the source of many of my recent problem. The print in Segger is going crazy. I found out that if I increment a simple variable and print it when I hit debug and run ( then play button), they system will skip or stop in the middle :

I removed everything and I did this on the main.c :

  for (int k=0;k<50;k++)
   NRF_LOG_INFO("BIM BAM %d\r\n",k );

This will only print from 0 up to 23 or 27 , not to 50 .

I think there is something fundamentally wrong with my printing which skips values and going crazy.

I'v also tried to use the nrf_log_push , on things like this :

   for (int k=0;k<50;k++)
   NRF_LOG_INFO("Read %s\r\n",nrf_log_push(data[k]) );

which would skip levels, and instead of data that goes from 1 -50 , it will go like :

1 2 3 5 6 8 10 11 12 15 etc .

In simple words it is going crazy for some reason.

Parents Reply Children
Related