This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LOG_INF doesn't print float numbers on RTT logs

I am using nRF_Connect_sdk and RTT logs.

In RTT logs, float numbers are not getting displayed.

I am getting just 0.00 for floating numbers.

Can you help me with how to display floating numbers on RTT logs?

Parents
  • bhumika said:
    So as you can see, when I print the value in integer format, it shows in log, else it displays 0.00 on RTT logs.

    Thanks for the feedback, Bhumika!

    Have you enabled the following configuration parameters in your prj.conf?

    CONFIG_LOG=y
    CONFIG_LOG2_MODE_IMMEDIATE=y
    
    CONFIG_FPU=y

    Regards,

    Markus

Reply
  • bhumika said:
    So as you can see, when I print the value in integer format, it shows in log, else it displays 0.00 on RTT logs.

    Thanks for the feedback, Bhumika!

    Have you enabled the following configuration parameters in your prj.conf?

    CONFIG_LOG=y
    CONFIG_LOG2_MODE_IMMEDIATE=y
    
    CONFIG_FPU=y

    Regards,

    Markus

Children
Related