AnsweredAssumed Answered

l3g4200d anв stm32 problem

Question asked by ocheretianko.maxym on Jan 5, 2012
Latest reply on Jun 19, 2012 by sophia.ge
Hi! I have a board with L3G4200D gyroscope and STM32F103 mcu. Gyroscope is connected to mcu via SPI bus (SPI2 on mcu). But it's not working because of some strange things. Reading from gyroscope controll registers is working normally untill i try to write something. After writing to controll registers reading of any register gives 0xFF. I can't understand what's the problem. Guys, can you help me?

Here is my code
spi driver
l3g4200d.c
l3g4200d.h

Thanks for help!

Outcomes