cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2HH12 not responding

JonFick
Associate

Hello,

I have the LIS2HH12 chip in two separate boards, same board, same firmware.  These devices have been working well, producing X,Y,Z data.  Until today, that is, after a firmware update.

This device is the only thing on the I2C bus, 100KHz, 5.1K pullups, 3.3V, connected to an ESP32 S3.  Waveforms on the oscilloscope look clean.

The CTRL1 register gets 0x3F and CTRL4 register gets 0x04 which I believe should provide initial functionality.

WHOAMI returns 0x41, but STATUS returns 0x00 and all six OUT_ registers return 0, as illustrated below.

I have a feeling I've overlooked something really simple.  I've read both datasheet and appnote, and looked through this community for hits on the LIS2HH12.  Thanks for any thoughts or ideas.

WHOAMI and STATUSWHOAMI and STATUSOUT regsOUT regs

1 ACCEPTED SOLUTION

Accepted Solutions
Federica Bossi
ST Employee

Hi @JonFick ,

I think that LIS2HH12 PID examples on Github could be you to find the error in your code.

Hope this helps!

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Federica Bossi
ST Employee

Hi @JonFick ,

I think that LIS2HH12 PID examples on Github could be you to find the error in your code.

Hope this helps!

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
JonFick
Associate

Thanks for the quick response and the pointer to GitHub.