2018-08-17 05:13 AM
The SPI works well. I can asleep the sensor but when I try to asleep the EnOcean module, I see that the sensor consume near 500µA. I have put two pull down on SDI/SDO and SCL and two pull up on the CS_ACC and CS_MAG.
2018-08-17 05:47 AM
Can you share your schematic?
I don't know STM300 module, but why do you put pull down on SDI/SDO and SCL pins?
2018-08-17 05:56 AM
Because the STM300 module pins are floating when it is sleeping
2018-08-17 05:57 AM
2018-08-17 05:57 AM
2018-08-17 05:57 AM
2018-08-17 06:24 AM
OK, I see.
The problem could be caused by floating INT_MAG/DRDY pin. Please try to connect pull-up or pull-down on this pin.
2018-08-17 06:39 AM
I cannot pull up or pull down because the pin is inaccessible.. see below
I have tried to connect a STM32L151CC with the LSM303AGR and I don't have the power consumption problem. I think this pin can be left floating without having any influence on the power consumption.
2018-08-17 06:55 AM
Other solution could be set the INT_MAG bit in CFG_REG_C_M to 1.
2018-08-17 06:56 AM
Done but I have the same power consumption.