Benewake TF02-Pro _____ (IIC)
Holybro UM982 _________(GPS1 port - USART1 & IIC)
Companion computer ____(FMU Debug Port - USART3)
Tmotor Datalink _________(Telem1 port - UART7)
ELRS receiver _________ (Telem2 prot - UART5)
Siyi A8 mini ____________(GPS2 port - UART8)
Holybro PM06D ________ (Power1 port)
Motor ________________ (I/O PWM OUT)
I can’t find the exact cause, but it seems to have started happening after I changed the Benewake tf02-pro lidar from UART to IIC or connected a companion computer to the FMU debug port.
I also tried changing the IIC power to an external BEC, but that didn’t help.
This is the same symptom as in the post above, but the solution didn’t help, and I didn’t see anything else written about this symptom, so I’m posting it here.
Does anyone have any ideas on this issue? Any response would be appreciated.
I know that SPI and IIC are different buses. It was just part of the debugging process.
My understanding is that the only part of the pixhawk that SPI is used by is the IMU and the external spi port, and the IMU seems to be recognized as normal even when SPI fails. (I’m using a mini board, so no external spi port)
Debugging is going to be a very hard and long job as the symptoms are intermittent, but I’ll try removing the lidar and companion computer first.
I think also the SD-card might be on a SPI-port and the SD card as not 100% fixed device might can have connection problems due to vibrations.
Just some ideas, no knowledge
This is a pretty low-level issue and usually indicates hardware failure. I think first you need to try and identify which SPI device is causing the issue - there are not that many of them and on my Pixhawk 6X pro it looks like its only the IMUs. So I would first try disabling the IMUs one by one using INS_ENABLE_MASK and see if the problem goes away. You may have to make some config changes if your primary IMU no longer exists.
Based on your comments, it seems like the only place to have an SPI_fail issue is with the imu on the Pixhawk 6x.
Because of this, the first thing I checked when I got the SPI_fail warning was the gyro and accelerometer values, and in the mission planner the 3 acceleration and gyro values came in fine.
Is it possible to get the imu values to come in normally even with the SPI_fail issue? I’m a little confused. I’m also wondering under what circumstances exactly SPI_fail is triggered. For example, SPI timeout or something…
This confirms that the companion and lidar are unrelated; unlike before, I cannot receive data from IMU 1 in case of a spi fail. There are also some changes to the warning wording that occur. (internal error 0x4000 l:215 spi_fail → internal error 0x4000 & gyros not healthy)
But another strange thing is that, fortunately or not, it has never happened in flight.
So my current thinking is that the following factors could be causing this issue
a malfunction due to heating of the heater during a long bench test
not connecting the RC (ELRS)
hardware issue with the Pixhawk
I thought powering via USB might be the problem, so I also tried bench testing with batteries, but the same issue occurred when powered by batteries.