Possible LSM6DSL conflict in SPI line
Dear ST,
I am using an LSM6DSL connected to the SPI pin of AVR (ATMEGA328PB; schematic attached). The SPI line is shared by two other devices with different CS.
I am having issues programming the AVR through SPI (raw board, all ICs new, 125kHz SPI clock). I measured the clock line and MOSI and they are fine. The MISO line (LSM6DSL SDO), is giving weird outputs. The problem disappears if I remove the LSM6DSL from the board and everything else then works fine.
I tested for shorts or bad contacts and could not fine any. The PCB board is small (5 cm, 4 layers) and I could not detect issues with the clock wave form, just with the pattern. I suspect the LSM6DSL is outputing something to the SDO line when the programmer (ATMEL-ICE) is communicating with the AVR (which is in reset mode, so the LSM6DSL CS is high-Z).
I am not sure the issue is with the LSM6DSL, but I would appreciate any feedback you could give me while I try alternatives.
Thank you,
Paulo.
