2021-03-22 06:23 PM
Hi ST
we are seeing wrong response for WHO AM I command,
SPI Configuration:
sent 0x8F00 on MOSI line and seen 0x0040 and it was random some times we are seeing 0x007F as a response. can you please help us on this
Solved! Go to Solution.
2021-03-25 02:48 AM
Hello @Eleon BORLINI
found the root cause for it, MISO line is with high impedance , just need to place the resistance to avoid reflections on the line. In my case we have added 20ohms resistor is added.
2021-03-23 12:56 AM
Can some one help me on this please !
2021-03-23 08:13 AM
Hi @Eleon BORLINI
Can you please help me on this, as this is on high priority for me and we are blocked with this.
2021-03-23 08:38 AM
Hi @SChin.2 ,
No guess so far, the CS, CLK and MOSI lines looks OK. MISO line and Channel 3 (I suppose it is the scope waveform). not so good...
For this reason, I'm wondering if it could be an "hardware" problem. Did you correctly set all the pins from the application processor side, and in particular the SCx and SDX pins, as stated in the datasheet p.9?
-Eleon
2021-03-23 09:00 AM
Hello @Eleon BORLINI
Are you refereeing me to P.19 (Table 2. Pin description).
Here my connections description :
VDDIO-->3.3V
VDD-->3.3V
GND-->GND
CS--> Chip Select of MC
SCL-->Clock of MC
SDA-->serial data output line of MC
SDO-->serial data input line of MC
Reset all pins are left not connected (NC)
2021-03-23 09:04 AM
Please note that the SDx and SCx pins (in Mode 1 function, i.e. LSM6DS3 slave configuration) have to be connected to VDDIO or GND, even if they are not used.
-Eleon
2021-03-23 09:13 AM
how about other two pins ? OCS, OSDO
Can be left not connected ?
2021-03-23 09:23 AM
Hello @Eleon BORLINI
I have just tied the SCx & SDx lines to GND and verified by reading WHO AM I register, am seeing 0x007F as a response constantly.
For your info clock is at 1Mhz
2021-03-23 09:28 AM
The OCS and OSDO lines refer to the other device on the STEVAL-MKI160V1, so no problem.
Try with 8 bit per transfer, I'm running out of ideas...
-Eleon
2021-03-23 09:43 AM
As I expected am seeing response 0x0000 for 8bit transfers. Is their any other way to verify the device functionality or communication ?