BMA456 Simple read of Acceleration Values

Hello,

we are using BMA456, connected to a uC via SPI Interface.

In first step, I simply want to read the acceleration data registers, and I wrote a small program according to the steps described in "Example 2" of the data sheet.

But the readout of the registers is always Zero.

What am I doing wrong, resp. what do I have to do to make it work ? Is there any further initialisation/configuration necessary ? If so, does anybody have a code example for this ?

I downloaded the driver API, but there is a lot of code inside which I do not (yet) understand.

I searched the net carefully, but could not find any help or information....

Thanks in advance, bye

Harald

Best reply by HBUDE

Hello BSTRobin,

thanks for information. I know it's working, I simply used the wrong data length in this function.

Thanks again, bye

Harald

View original
8 replies
Resolved