AnsweredAssumed Answered

ADXL362 with STM32 VL Discovery

Question asked by usidedowner on Dec 5, 2016
Latest reply on Nov 7, 2017 by jwang

I'm having trouble reading the data from the sensor at the moment. I have taken the sample code for the Arduino and adapted it for use with the STM. My code compiles with no errors, but the data isn't being logged at all. I have tested the device with my Arduino and it seems to be functioning fine. Could somebody take a look at my code and point me in the right direction? I don't really understand what the datasheet says about collecting the data...

 

My apologies, I tried to directly put in the code but the formatting is coming out all weird. I've included the main code as an attachment.

 

It works fine up until the readData() function is called, then things stop working. I'm just not sure of the steps required to get the sensor to start reading.

Attachments

Outcomes