cancel
Showing results for 
Search instead for 
Did you mean: 

stm32cube BSP for component LSM303DLHC

quentin2
Associate
Posted on February 20, 2015 at 10:59

hi,

I have downloaded the last stm32cube software including BSP for STM32discovery boards.

I had issue with LSM303 accelerometer before i discovered that:

in Drivers/BSP/Components/lsm303dlhc.c

line 124 should ''probably'' be:

ctrl = (uint8_t) (InitStruct >> 8);

not

ctrl = (uint8_t) (InitStruct << 8);

please confirm.

 

#lsm303dlhc #stm32cube
1 REPLY 1
Posted on March 13, 2015 at 17:53

Hi giorgi.quentin,

Actually, we confirm that it’s an error, it will be fixed in the next release.

thanks for your feedbacks.

Best regards,

Heisenberg.