Skip to main content
Associate II
April 8, 2026
Question

asm330lhhxg1 "who_am_i" register is reading back 0x48. Should be 0x6.

  • April 8, 2026
  • 3 replies
  • 119 views

Connected STEVAL_$MKI243AA board to a nucleo-g491re board using 4 wire spi interface. The spi bus is setup to run @ 146 Kbits/sec. Reading back bad data. 

WHO_AM_I is 0x48

PIN_CTRL is 0x3E

 

Not sure but seem like the device is power

3 replies

TDK
Super User
April 8, 2026

Why should it be 0x6?

Screenshot 2026-04-08 102959.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
Federica Bossi
Technical Moderator
April 16, 2026

Hi @arifkhan ,

The correct whoami, as reported also by @TDK , is 6Bh.

Probe with a logic analyzer and check:

  • MOSI address byte
  • MISO timing
  • whether the returned byte is shifted by 1 bit
  • whether CS stays stable

Did you try the reading also in I2C or SPI3?

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.
arifkhanAuthor
Associate II
April 16, 2026

hello Federica,

 

Yes, i have the scope connected to the 4 spi signals, I see 0x8F go out on the MOSI and I see 0x48 on the MISO wire every time.  I put a 10k pullup on the CS wire and also a 10K pulldown on the INT1 signal.

 

Yes I tried the I2C bus and I am able to read 0x6B data back from the WHOAMI register.

 

Rgds

arifkhanAuthor
Associate II
April 23, 2026

hello Federica,

 

Is there some setup to this part at power up ?

 

I am completely at loss right now I would really appreciate some help from ST micro.

 

Rgds

 

arifkhanAuthor
Associate II
April 24, 2026

I am really disappointed with the help i have received from ST micro. 

I should start looking for an alternate solution and and also transition away from using all STmicro parts in the future given there level of support.

Andrew Neil
Super User
April 27, 2026

@arifkhan wrote:

I am really disappointed with the help i have received from ST micro. 


You still haven't provided your schematic, or any code

How to write your question to maximize your chances to find a solution

 

Something is clearly very wrong with your MISO:


@arifkhan wrote:
AndrewNeil_0-1777278462869.png

Do you have a good ground connection?

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.
arifkhanAuthor
Associate II
April 27, 2026

Hello Andrew,

 

Why do you say that MISO is bad? At the start of the SPI cycle, the IMU will not drive this signal, and so the MISO line would be floating (which is what is being observed). in the second part of the SPI cycle, read data is clearly being driven back by the IMU i.e. 0x48 (which is the problem. It should be 0x6B). 

 

Thx.

 

Rgds.