2026-04-08 5:17 AM
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
2026-04-08 7:33 AM
Why should it be 0x6?
2026-04-16 1:11 AM
Hi @arifkhan ,
The correct whoami, as reported also by @TDK , is 6Bh.
Probe with a logic analyzer and check:
Did you try the reading also in I2C or SPI3?
2026-04-16 8:02 AM
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
2026-04-23 7:57 AM
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
2026-04-23 8:13 AM
Please show your scope trace.
Use the scope's screen capture if possible - it will give much better results than trying to photograph the screen!
Are you sure you have the correct SPI Mode?
Please post your schematic and show a minimum but complete code example which demonstrates the problem.
How to write your question to maximize your chances to find a solution
2026-04-23 10:10 AM - last edited on 2026-04-27 1:24 AM by Andrew Neil
ch1- csn,
ch2 = spi clk,
ch3 = mosi,
ch4 = miso.
SPI cycle read of WHOAMI register spiAddr = 0x8F, spiData = 0x48 (should be 0x6B).
spi mode 3 i.e. clk polarity high, clock 2nd edge.
2026-04-23 11:59 AM - last edited on 2026-04-27 1:25 AM by Andrew Neil
Is there initialization code that must be run (write cycles) before the device will respond to reads?
I connect the STEVAL_$MKI243AA module into the steval-mki109D board and i can read the whoami register as 0x6B (i see it on the scope also). But if i connect the same STEVAL_$MKI243AA to my nucleo-g491 eval board with jumpers (4 wire spi), the board is giving 0x48 for the WHOAMI register.
what is the steval-mki109D board doing special to make it work?
Any help on this will be greatly appreciated.
2026-04-24 1:39 PM
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.
2026-04-27 1:28 AM
@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:
Do you have a good ground connection?