2024-07-24 10:53 AM - edited 2024-07-24 11:05 AM
Hello -
I have an Accel 28 board made by Mikroe that has the LIS2HH12 device. As per the Mikroe data sheet I set J1,J2,J3 to positions 2-3. I have removed J5 so that line isn't pulled up.
I've got the first 6 pins on the lower left up connected to my NUCLEO-L476RG development board.
GND, 3V3, SDI, SDO, CLK and CS. I have confirmed CS, CLK and SDI have normal and good signals. Yet, SDO is distorted, almost non-existent, but does return the correct value occasionally. Please see scope pix attached. Top is SDI/MOSI, bottom is SDO/MISO. I've also tried unplugging SDO pin from Accel 28 to STM32 to confirm it's not a loading issue. On this test the function did return the correct value of 0x41 to "Who am I" (0xF) command.
It's clear to see this is a peculiar signal and not normal at all. Also attached is Accel 28 schematic.
Could you please offer any suggestion as to what the problem might be? Have you seen this before?
Thanks!
Solved! Go to Solution.
2024-07-24 03:45 PM
Hi,
Thanks for taking the time to respond. Actually, the NUCLEO board has nothing connected except for the 6 pins I indicated. So that's not an issue.
I discovered I have an ADXL313 card, so I connected that up and it works. It has no problem with any signals, all look good and returned the Device ID 0xAD
Then I connected the Accel 28 card back up and tried again with same results as before. For grins I swapped the MISO/MOSI in case the board was marked wrong but no help. Also - this card has no pull-up so I configured the GPIO with one and didn't help. Something odd with this Mikroe card! I will try to find out more from Mikroe.
So I will close this question and thanks for your help.
2024-07-24 12:33 PM
Looks like both devices are trying to drive the purple trace. This is almost certainly a hardware connection problem, not a software setup one.
Recheck your pinout, verify pins are connected correctly. Ensure the pins you're using on the nucleo board are free and not used by other devices on that board. Post more details about your setup, mainly which pins are connected to what else.
2024-07-24 03:45 PM
Hi,
Thanks for taking the time to respond. Actually, the NUCLEO board has nothing connected except for the 6 pins I indicated. So that's not an issue.
I discovered I have an ADXL313 card, so I connected that up and it works. It has no problem with any signals, all look good and returned the Device ID 0xAD
Then I connected the Accel 28 card back up and tried again with same results as before. For grins I swapped the MISO/MOSI in case the board was marked wrong but no help. Also - this card has no pull-up so I configured the GPIO with one and didn't help. Something odd with this Mikroe card! I will try to find out more from Mikroe.
So I will close this question and thanks for your help.