Question
STM32F4Discovery LIS302DL or LIS3DSH
Posted on January 30, 2014 at 14:47
I've been running the demonstration code and it's been failing in the MEMS selftest.
The function call below puts 0x3F into temp whereas the value in the datasheet and in the function states it should be 0x3B. The value 0x3B is the correct value for the LIS3DSH and in the documentation for the discovery board it say's it can contain either the LIS3DSH or LIS302DL.LIS302DL_Read(&temp, LIS302DL_WHO_AM_I_ADDR, 1);This is a bit confusing for a newbie like myself but now I think I've figured out which MEMS chip is on the board the firmware or utilities are related to the LIS302DL. I've been through the data sheets for both and the register address maps are very different. So really my question is have I understood this correctly or is it in fact the LIS302DL and I've made a mistake.If it is the LIS3DSH which I think it is, is there another download I've missed that provides utilities for the LIS3DSH or is it better to write my own driver which will be a good learning exercise anyway, but I would like to know if there is some other reference for it.Thanks,Jim. #stm32f4discovery-lis302dl-lis3ds