2014-11-05 03:11 AM
Hi everyone!
I have a project where necessary to use FPU to proccess my AD data. If I enable the FPU in the uVision Keil, then I can see an extra noise on my power line and I get wrong values, but when I disable the FPU, values are good and the measurement is correct. I'm developing on the STM32F407 eval board. I have attached 2 picture. The same code with and without FPU. Im not allowed to tell the goal of the signals, but the blue one shows the power in AC mode. Anybody has the same or similar experience? All the best, Attila #stm32-fpu-noise2014-11-05 03:38 AM
If I enable the FPU in the uVision Keil, then I can see an extra noise on my power line and I get wrong values, but when I disable the FPU, values are good and the measurement is correct.
I guess you mean noisy values. However, the FPU represents a not-insignificant part of the silicon, clocked with system core clock (up to 168MHz), which consequently pulls a significant amount of power when enabled. The F407 has separate VDDA and VSSA pins to decouple analogue peripherals from the digital supplies, and the unavoidable ripple. Do you (or does your board) make use of it ?
2014-11-05 04:21 AM
2014-11-05 04:40 AM
> the FPU represents a not-insignificant part of the silicon, clocked with system core clock (up to 168MHz), which consequently pulls a significant amount of power when enabled.
How true; however, the datasheet fails to specify... :( Anybody with enough buying power to pester ST?> Yes, I tried to separate the analog part, I have connected external voltage to the VDDA, Vref+, but it didn't give significant improvement.
Then you still have problem with grounds (!!!) and decoupling. > Okay, lets say, my power lines are not the best, but is it possible to have an internal effect of the FPU usage to the AD's power supply? Probably yes, but it's hard to say, how much. Have you read AN4073 and AN2834? JW2014-11-05 05:24 AM
> Okay, lets say, my power lines are not the best, but is it possible to have an internal effect of the FPU usage to the AD's power supply?
Probably yes, but it's hard to say, how much. Have you read AN4073 and AN2834?
Neither did I do a close investigation of EMI issues in analogue peripheral due to power supply. However, one should note that analogue peripherals in microcontrollers are always a compromise. They are forced close to hard-switching digital circuitry, with less than optimal supply voltage. Considering that, ST did do a quite good job, compared to competitors, and considering the price (well, less for documentation). If you need very good accuracy, consider external analogue components, giving you much more freedom in design and PCB layout.
2014-11-05 05:48 AM
2014-11-05 05:59 AM
I get wrong values, but when I disable the FPU, values are good and the measurement is correct.
But wrong how? You understand how awful precision is at 32-bit (24-bit mantissa) with no better intermediate precision, right? Does the math work on DISCO and EVAL boards? Can you demonstrate the arithmetic and data used to illicit the failure?