cancel
Showing results for 
Search instead for 
Did you mean: 

lsm6dsv320x WHO_AM_i

fk
Associate

We're looking to use the lsm6dsv320x in our product. I'm using this senser on the on the STEVAL-MKI247A adapter board for testing. We're currently in development using the adapter board with the Nordic nRF52840DK board. I'm having issues with getting the correct value from the WHO_AM_I with certain SPI pin configurations on the nRF52840DK. I can only get one SPI configuration to output the correct value of 0x73 which is SPI1. If I try change the pins or use one of the other SPI's available on the 52840, I consistently get a value of 0x64. Does that value mean anything to anyone? I've tried lowering the frequency to 500kHz, tried all four of SPI modes, I've tried performing a reset using the FUNC_CFG_ACCESS and CTRL3 registers before reading the WHO_AM_I register, but I still get the value of 0x64 except with the one configuration mentioned. I'm using the ST fsm_example for this test. We would like to change the SPI pins as the we want to use the smaller package of the nRF52840 which doesn't have some of the default pins for this SPI! bus. I've looked at the waveforms on an analyzer and there seems to be plenty of setup and hold with the address and data. Any significance to the value of 0x64?Screenshot 2025-07-03 114225.png

6 REPLIES 6
TDK
Super User

TDK_1-1752204977890.png

 

You're reading register address 0x8F. The WHO_AM_I register is register address 0x0F.

https://www.st.com/resource/en/application_note/an6119-lsm6dsv320x-6axis-imu-with-ai-highg-accelerometer-and-embedded-sensor-fusion-for-highend-applications-car-crash-detection-stmicroelectronics.pdf

 

TDK_0-1752204904410.png

 

If you feel a post has answered your question, please click "Accept as Solution".

fk_0-1752255426985.png

 

Andrew Neil
Super User

@fk wrote:

I've looked at the waveforms on an analyzer 


Does it show any difference between "working" and "non-working" cases?

 

PS:

Check also with an oscilloscope for any issues in the analogue domain.

Have you checked carefully that the Nordic DK doesn't have anything attached to the "non-working" pins?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
fk
Associate

The difference between the waveforms is that it accurately shows the data value that is being received by the 52840. 0x64 which is the incorrect value and 0x73 which is the correct value. So, the waveforms are accurately showing the incorrect/correct data being produced by the lsm6dsv320x.

TDK
Super User

How confident are you that it's a lsm6dsv320x chip? Does the marking on top match up? Apart from the WHO_AM_I register, does the chip behave as expected? Could just be a bad datasheet value.

 

It looks like the STEVAL-MKI247A board comes with a different chip (LSM6DSV80X). You replaced it with this one?

STEVAL-MKI247A - LSM6DSV80X adapter board for a standard DIL24 socket - STMicroelectronics

 

Doubt any of that solves it, but I'm out of ideas.

If you feel a post has answered your question, please click "Accept as Solution".
fk
Associate

Thanks for trying but yes, I have tried another module with the same result. On the 528140, the module works in one pin configuration, but not in the other pin configurations. It also works as expected using another Nordic kit, the nRF54L15. So, it seems to be something with the 54840, but I have no idea why the sensor puts out this incorrect value while the communication looks clean.