cancel
Showing results for 
Search instead for 
Did you mean: 

STM3220G-EVAL and LIS302DL

guillaume2399
Associate II
Posted on March 05, 2013 at 22:57

Hi,

I just got a STM3220G-EVAL board. I have to connect an I2C device, but first of all I'm trying to access via I2C the LIS302DL accelerometer on board.

Unfortunately, I can't find any example for that embedded device.

I tried to write some code using CPAL library sample but I never access the device.

Do I forgot something like positioning a jumper ?

Please help.

Regards.
6 REPLIES 6
Posted on March 06, 2013 at 00:05

STM32F4-Discovery_FW_V1.1.0\Utilities\STM32F4-Discovery\stm32f4_discovery_lis302dl.c

STM32F4-Discovery_FW_V1.1.0\Project\Peripheral_Examples\MEMS\main.c

STM32F4-Discovery_FW_V1.1.0\Project\Demonstration\selftest.c

..
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
guillaume2399
Associate II
Posted on March 06, 2013 at 08:13

Hi,

Thanks for your quick answer. I'll download the STM32F4 FW and test.

I'll come back to let youy inform of my research.

Regards.

guillaume2399
Associate II
Posted on March 06, 2013 at 08:24

Ok,

This sample demonstrates SPI communication to LIS302DL, but the STM3220G-EVAL has the LIS302DL connected via I2C according to the documentation.

;-/

guillaume2399
Associate II
Posted on March 07, 2013 at 16:37

So I try now to access the Audio Codec I2C regsiters and it's the same problem. I fall in timeout.

The only I2C devices I can read are the Expanders. Don't understand what is the problem.

Regards.

guillaume2399
Associate II
Posted on March 07, 2013 at 16:52

So I try now to access the Audio Codec I2C regsiters and it's the same problem. I fall in timeout.

The only I2C devices I can read are the Expanders. Don't understand what is the problem.

Regards.

matthias
Associate II
Posted on August 16, 2013 at 09:16

Hi,

I'm experiencing exactly the same problem. Did you manage to find the problem?

Thanx for sharing your fix...

Regards