I'm trying the get the development kit of the nRF52832 (PCA10040) displaying a floating point value. I read several postings of this problem, but non of the suggested solutions is working for me.
I changed the project settings for the printf to Float.
I tried:
float measurement = value / 100; // where value is about 289, so measurement should be 2.89
NRF_LOG_INFO("Voltage: "NRF_LOG_FLOAT_MARKER" V",NRF_LOG_FLOAT(measurement));
The NRF_LOG_INFO and printf both don't show me a correct floating point result. I don't know where to look anymore. Anyone a hint?
I'm using Segger Embedded Studio v3.34a with SDK 14.2.0_17b948a and PCA10040 v0.9.0
<configuration
arm_fp_abi="Hard"
arm_fpu_type="FPv4-SP-D16"
c_preprocessor_definitions="DEBUG; DEBUG_NRF"
c_user_include_directories="
gcc_debugging_level="Level 3"
gcc_optimization_level="None"
linker_printf_fp_enabled="Float"
linker_printf_width_precision_supported="Yes"