Skip to content

Frequent SPI errors #2288

@adeebshihadeh

Description

@adeebshihadeh

On a given drive, SPI errors will accumulate like this:

Image

Normally this isn't a problem. Nearly all our communications are idempotent, and the CAN traffic that isn't is fine to drop packets occasionally, both for read and write. This allows our SPI protocol to be simple.

However, we have now run into an ECU (Chevy Bolt EPS) that is extremely sensitive to dropping packets, and these SPI errors result in ECU faults. #2122

We have two (non-mutually exclusive) options here:

  1. identify the root cause and drive down the frequency of the errors such that the probability of faulting the Bolt EPS on a given drive is very low
  2. make the protocol robust to these drops, similar to USB

I'd like to avoid No. 2 if possible, so let's first try fixing No. 1 first. I suspect it's something like a race condition or we're disabling the SPI peripheral on the panda too long.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions