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

Run time errors with i2c #1

Open
pdgilbert opened this issue Dec 29, 2024 · 3 comments
Open

Run time errors with i2c #1

pdgilbert opened this issue Dec 29, 2024 · 3 comments

Comments

@pdgilbert
Copy link
Owner

Examples are all compiling but there are run time errors with i2c initializing the sensors. Curiously, the *semi examples that work with stm32g4xx-hal fail with stm32f4xx-hal and those that work with stm32f4xx-hal fail with stm32g4xx-hal. See stm32-rs/stm32f4xx-hal#828.

@pdgilbert
Copy link
Owner Author

The i2c problems using stm32f4xx_hal on blackpill are resolved by specifying a non zero opt-level. This is now set in Cargo.toml. (More detail at stm32-rs/stm32f4xx-hal#828.)

Blackpill run testing

  • working examples: aht20-bl-semi, aht20-dr-semi, aht20-em-semi, sht30-em-semi, shtc3-semi, xca9548a-aht20-bl, xca9548a-aht20-dr, xca9548a-aht20-em, and xca9548a-sht30
  • failing examples: xca9548a-shtc3 gives Normal mode measurement failedCrc.

@pdgilbert
Copy link
Owner Author

Run testing using stm32f1xx-hal#6c5dc881 on bluepill (requires --release)

  • working examples: aht20-bl-semi, aht20-dr-semi, aht20-em-semi, sht30-em-semi, xca9548a-aht20-bl, xca9548a-aht20-dr, and xca9548a-aht20-em
  • failing examples:

@pdgilbert
Copy link
Owner Author

Run testing using stm32g4xx-hal on stm32g474xE

  • working examples: aht20-bl-semi, aht20-dr-semi, xca9548a-aht20-bl and xca9548a-aht20-dr.

  • failing examples:

  • aht20-em-semi stalls at aht.measure().
  • sht30-em-semi stalls at sen.measure().
  • shtc3-semi panics at examples/shtc3-semi.rs:86:65: Normal mode measurement failed: I2c(Nack)
  • xca9548a-aht20-em, xca9548a-sht30andxca9548a-shtc3 need*semi` examples to work first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant