2021-02-24 02:49 AM
Hello ST
here am using STEVAL-MKI160V1 in which LSM6DS3 is placed and an trying communicate with it over SPI.
Physical connections:
SPI Configuration:
Am sending command "0x8F00"(WHO AM I-0F) over MOSI line and am not able to see response "0x0069" instead am seeing 0x0B00/0x0F00/0x0000 etc.. which is not consistent, I believe all the responses are wrong. Do I missing something in Physical connections or doing something wrong in SPI config ?. please help me
Seen VDDIO voltage level is 5V with out having any connection on it , but still VDDIO max is 3.7 as per data sheet , is that the issue ?
Do I need to make any additional connections or circuit on OCS/SCx/SDx/OSDO ??
Please do the needfull.
2021-02-24 06:07 AM
Hi @SChin.2 ,
>> Seen VDDIO voltage level is 5V with out having any connection on it, but still VDDIO max is 3.7 as per data sheet, is that the issue?
Yes, this could be the issue, both in the case that Vdd = VddIO = 5V or Vdd < VddIO = 5V. In the former case, the most probable SPI MISO data you are likely to receive are 0xFF patterns, while in the latter case you might receive data different from 0xFF, since the Vdd is valid, but inconsistent since the internal digital logic of the sensor will not recognize the High / Low levels. Almost all the ST sensors are CMOS 3.3V and below logic compatible.
Please note also that you could be in an out-of-absolute-maximum ratings condition described in the datasheet, p.27, i.e. 4.8V.
Can you try lowering the VddIO and see what happens (if the part is not yet damaged)?
-Eleon
2021-02-24 09:00 PM
Hello @Eleon BORLINI
Thanks for the quick response !
How to lower the voltage on VDDIO, since here I just connected 3.3V to VDD and GND to GND ?
Is VDDIO is input or output ?
2021-02-24 11:24 PM
Hi @SChin.2 ,
VddIO is an input and determines the high and low level of the sensor digital output. One possibility is to tie it to Vdd, so that it will be equal to 3.3V and there will be no inconsistency in detecting the digital levels.
You are using SPI so no need of external pull-ups to VddIO.
-Eleon
2021-02-25 02:08 AM
Hello @Eleon BORLINI
After shorting VDD & VDDIO , I mean after supplying 3.3V to VDDIO am seeing 4.2V on both VDD and VDDIO. Is this a good or bad sign ?
2021-02-25 02:24 AM
It means that there is a residual connection or a resistance partition between VddIO and probably the previous 5V supply...
Could you share the schematic to check it?
-Eleon
2021-02-25 02:45 AM
I don't have the Schematic of the EVB
FYI am using this
if available can you please share the schematic of the EVB.
2021-02-25 04:37 AM
The schematic of that board (STEVAL-MKI160V1) is in the second page of the link you shared...
I'm now understanding from where the 5V comes... it should come from your power supply tree, the is external to the eval board (probably coming from your custom motherboard...)
-Eleon
2021-02-25 09:56 PM
Hello @Eleon BORLINI
If I have alone two wires GND to GND and 3.3V to VDDIO & VDD then am seeing 3.3V at VDDIO & VDD.. but if I connect all the SPI lines then am seeing 4.2V..
Why SPI lines making this issue ?
2021-02-26 02:19 AM
Are you maybe connecting the device (any lines other than Vdd/VddIO, such as CS, SPI lines...) to an application processor compatible with 5V logic?
-Eleon