cancel
Showing results for 
Search instead for 
Did you mean: 

STPM34 using SPI with multiple devices on bus

pksublime
Associate

I'm experiencing issues when I talk to other devices on the SPI bus and then talk to the STPM34.

I've confirmed the startup sequence of the STPM34 is correct, and if I never talk to the other device(s) there is no issue with the STPM responses.

However, when I do talk to the other device(s) the next response from the STPM fails to provide a valid CRC in its response frame. Without a valid CRC I don't know if the rest of the frame is correct or not, much less able to determine if the values are appropriate.

I've confirmed that the chip select lines are all in the correct state, but even clocking data onto the SPI bus without ANY chip select lines asserted, the CRC error on the next frame will occur.

The error is not persistent, so if I continue to query the STPM the next frames are restored.

It seems like data on the SPI bus, even when the STPM is not selected, still affects the behavior of the STPM.

0 REPLIES 0