Posted on February 12, 2015 at 15:09
Hi,
I'm trying to read the accelerometer (LIS302DL) in the STM32F4Discovery board using the I2C-Bus.
Unfortunately, my aapproach is not working. When i (try to) configure the IC an read the ''Who_...
Posted on February 16, 2015 at 17:40It seems like there is no way to obtain the accelerometer values directly using the I2C-Bus, since the IC is connected to PA5 and PA7 on the PCB. I assumed the pins had this functionality, because the I2C mode of ...
Posted on February 13, 2015 at 13:07
Yes, I used SPI for debugging and fogot to restore it.
After correcting this error, the program flow is stuck at line 72:
while
(I2C_GetFlagStatus(I2C1 , I2C_FLAG_BUSY)); The ''bus is busy'' ...
Posted on February 12, 2015 at 15:47
Thanks for your answer.
Actually, I fogot to set the CS signal, it is connected to PE3.
Despite that my problem still persists.
PA6 is used to modify the I2C-address of the chip, see page 19 of th...