2015-07-16 03:17 PM
The user manual for the STM32L053 discovery board shows an ''MFX'' module that looks like it does interesting things, including perhaps measuring the current consumed by the chip. Is there any documentation / app note / sample code for this module anywhere? I can't find any. Getting those numbers without using an ammeter would be very handy.
2015-07-17 08:14 AM
It connects via I2C
STM32Cube_FW_L0_V1.1.0\Projects\STM32L053C8-Discovery\Demonstrations\Modules\iddmeasurement\power.c2015-07-17 09:25 AM
2015-07-17 12:29 PM
It's part of the demo app yes, but the measuring function is on a separate STM32 you're not programming. You speak to it via I2C as demonstrated in the POWER.C file. So yes, you'll probably need to port the elements you need out of that file into your own, but I don't see that as being an overwhelming complex or time consuming task.
The other STM32 is separately powered. Might take a little effort to come up with a baseline/slope.