2025-02-12 06:03 AM
Hi There
Where I can find some source files for LSM303DLHC
I see some ref.links there, but right now they pointed to non-existed pages on github :( Or I miss something
Also I found this link https://github.com/STMicroelectronics/stm32-lsm303dlhc but it contain some "Common/accelero.h" and I also can't find it on github :(
Regards, Evgenij
Solved! Go to Solution.
2025-02-12 06:35 AM
I'm sorry that you were misled a bit. The URL you mentioned on Github only contains the actual ‘component’ of the LSM303DLHC, the other references are contained in the firmware packages of the STM32F, STM32G0 and STM32L, unfortunately apparently not (anymore) in the Github repository. However, you can find and download the entire packages here.
Apart from the parameter LowPower, which only seems to be relevant for the STM32L, the header files are identical.
Hope that helps?
Good luck!
/Peter
2025-02-12 06:35 AM
I'm sorry that you were misled a bit. The URL you mentioned on Github only contains the actual ‘component’ of the LSM303DLHC, the other references are contained in the firmware packages of the STM32F, STM32G0 and STM32L, unfortunately apparently not (anymore) in the Github repository. However, you can find and download the entire packages here.
Apart from the parameter LowPower, which only seems to be relevant for the STM32L, the header files are identical.
Hope that helps?
Good luck!
/Peter
2025-02-12 06:45 AM - edited 2025-02-12 06:52 AM
Thanks, I download it right now! This zip file include everything!
but, as I can see, LSM303DLHC doesn't support in "X-CUBE-MEMS1"
only LSM303AGR and ISM303DAC supported, correct?
2025-02-12 06:54 AM
The "old" F303-Discovery board firmware package contains examples for the LSM303DLHC, since this board came with such an e-compass device.
When I last checked, it was still up for download.
2025-02-12 07:28 AM - edited 2025-02-12 07:28 AM
@LoMo-MoMo Please note that the LSM303DLHC has already been discontinued and is therefore no longer officially supported and the associated documentation will soon be removed from the website. There is no pin-compatible replacement for it because it still has the comparatively huge LGA-14 housing with 3x5mm, while newer sensors have the LGA-12 with 2x2mm.
2025-02-12 11:18 AM
its clear, that's smartphone market with huge volumes demands low power low voltage solutions with small footprint, but also clear, that's small volume projects, like 500pcs/year will not use 2x2 LGA12 footprint with 1.8V core... if you will try to find some "factory" who will agree to solder 10-20pcs of LGA-12 per month you will understand why I'm interesting to use LSM303DLHC instead of ISM303DAC :) (but, you know, its just a usual problem for low volume projects)