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?
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
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
Hi,
I have enabled the following,
CONFIG_LOG=y
CONFIG_FPU=y
but not
CONFIG_LOG2_MODE_IMMEDIATE=y
in prj.conf.
I will enable this as well, but can you explain to me the role of the "CONFIG_LOG2_MODE_IMMEDIATE" conf also?