Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI_Mcp3008CanRead is frequently failing on CI #2339

Open
krwq opened this issue Aug 8, 2024 · 1 comment
Open

SPI_Mcp3008CanRead is frequently failing on CI #2339

krwq opened this issue Aug 8, 2024 · 1 comment
Assignees
Labels
bug Something isn't working Priority:1 Work that is critical for the release, but we could probably ship without

Comments

@krwq
Copy link
Member

krwq commented Aug 8, 2024

The most likely issue is that MCP3008 needs a reset but there is no way to software reset it. The other possibility is that something got disconnected but this is a path on the PCB so it seems unlikely.

    System.Device.Gpio.Tests.ProtocolsTests.SPI_Mcp3008CanRead [FAIL]
      Assert.InRange() Failure: Value not in range
      Range:  (1018 - 1023)
      Actual: 0
      Stack Trace:
        /_/src/System.Device.Gpio.Tests/ProtocolTests.cs(32,0): at System.Device.Gpio.Tests.ProtocolsTests.SPI_Mcp3008CanRead()

Seen on:

  • ddvsorpil019
@krwq krwq added the bug Something isn't working label Aug 8, 2024
@joperezr joperezr added Priority:1 Work that is critical for the release, but we could probably ship without and removed untriaged labels Aug 15, 2024
@krwq
Copy link
Member Author

krwq commented Aug 22, 2024

[Triage] Our best shot is to modify CreateAdc and try passing -1 as CS and manually set CS with LibGpiod - that will at least eliminate possiblity of CS not working through SpiConnectionSettings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority:1 Work that is critical for the release, but we could probably ship without
Projects
None yet
Development

No branches or pull requests

3 participants