Hi,
I use nrf 52832 with pca10056 and i need to use float to filter my data with low pass filter, but with this device, it doesn't work. Do you know how can I use float?
Thanks
Hi,
I use nrf 52832 with pca10056 and i need to use float to filter my data with low pass filter, but with this device, it doesn't work. Do you know how can I use float?
Thanks
it doesn't work
What, exactly, "doesn't work"? and in what way(s),exactly, does it "not work"?
What have you tried?
What results were you expecting?
What results are you actually getting?
What have you done to verify your initial expectations?
What investigation / testing / debugging have you done to find what's happening?
Hi, thanks for your response.
I just try to print a float like this :
float a = -1,9791;
printf(“a: %f”, a);
when i run, there is just a blank. So I don’t know if I need to setting parameters in SEGGER embedded or if it’s my device which cannot support float.
Yes, you need extra support for printing floats.
You will have to consult the SES documentation for details; it's a general thing - not specific to Nordic.
The chip itself is a Cortex-M4F - with the floating point unit (FPU) - so it does support floating-point operations.
But printing FP values is a library issue.
eg, see:
https://devzone.nordicsemi.com/f/nordic-q-a/18625/nrf_log_info-does-not-show-float-number
Also:
Yes, you need extra support for printing floats.
You will have to consult the SES documentation for details; it's a general thing - not specific to Nordic.
The chip itself is a Cortex-M4F - with the floating point unit (FPU) - so it does support floating-point operations.
But printing FP values is a library issue.
eg, see:
https://devzone.nordicsemi.com/f/nordic-q-a/18625/nrf_log_info-does-not-show-float-number
Also: