cancel
Showing results for 
Search instead for 
Did you mean: 

I can't get spi communication.

baby_chicken
Associate III

Hello.


I tried to use an imu that was previously working using the spi2 port of the stm32f4 series with the spi4 port of the stm32h7 series, but I cannot communicate with it. (imu is using icm42688p.)
Is it possible that I have made a mistake in my settings or something?

↓Configuration in the stm32f4 series.

スクリーンショット 2024-11-11 190140.png

 

↓Configuration in the stm32h7 series.

スクリーンショット 2024-11-19 201830.png

baby_chicken_0-1732015139757.png

 

Best regards.

 

5 REPLIES 5
Pavel A.
Evangelist III

IMUs are complex devices, usually they have non-volatile configuration and so on. The problem can be on the IMU side.

 

So you're saying that the settings are fine and I should try with a different imu?

baby_chicken
Associate III

I would like to know if there is some code or other that would turn on spi programmatically.

If you have not changed STM32 side program but the IMU acts up, it is logical to swap the IMU. If possible, take a new one with factory setup.

I will replace it with a new IMU.