AnsweredAssumed Answered

LSM303DLHC won't return I_AM_LMS303DLHC register when using STM32CubeF4 v1.5

Question asked by bader.eric.002 on Apr 11, 2015
Latest reply on Apr 21, 2015 by cgng
Hi everybody,
Using IAR for ARM v7.40.8472.
I just purchased a STM32F401C-DISCO (also called 32F401CDISCOVERY or MB1115B).
When using the demonstration code provided by "STM32F401 discovery firmware package (UM1660)", the LSM303DLHC  is working and I can get sensor values.
However, when I use the demonstration code provided by "STM32CubeF4 v1.5", the LSM303DLHC won't return the I_AM_LMS303DLHC register.
Needless to say that I have not modified the code at all.
I am really interested in using the STM32F4CUBE HAL driver but I have no experience yet.
I was wondering if anybody had the same issue and fixed it, or if another code exists that uses the LSM303DLHC sensor and the STM32F4CUBE HAL driver with the STM32F401C-DISCO?

Please let me know if you need additional information?