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

i2c: frdm-k64f and mimxrt1050_evk I2C driver will cause hardware exception if read/write to a not existing device #12849

Closed
hakehuang opened this issue Jan 30, 2019 · 1 comment
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug

Comments

@hakehuang
Copy link
Collaborator

hakehuang commented Jan 30, 2019

when the i2c driver read from a none existing device will cause hardware exception.

To Reproduce
Steps to reproduce the behavior on frdmk64f

  1. cd samples/sensor/adt7420
  2. mkdir build; cd build
  3. cmake -DBOARD=frdm_k64f ..
  4. make
  5. make flash
    Steps to reproduce the behavior on mimxrt1050_evk
  6. cd samples/sensor/adt7420
  7. mkdir build; cd build
  8. cmake -DBOARD=mimxrt1050_evk ..
  9. make
  10. make flash

Expected behavior
we can see from the log there is no such devices

Impact
this is an exception protection issue

Screenshots or console output

***** USAGE FAULT *****
  Illegal use of the EPSR
***** Hardware exception *****
Current thread ID = 0x2000011c
Faulting instruction address = 0x0
Fatal fault in essential thread! Spinning...
======== Target Main Serial Content:   ========
***** USAGE FAULT *****
  Illegal use of the EPSR
***** Hardware exception *****
Current thread ID = 0x2000011c
Faulting instruction address = 0x0
Fatal fault in essential thread! Spinning...

for rt1050

***** USAGE FAULT *****
  Illegal use of the EPSR
***** Hardware exception *****
Current thread ID = 0x2000010c
Faulting instruction address = 0x0
Fatal fault in essential thread! Spinning...

Environment (please complete the following information):

  • OS: Linux
  • Toolchain ( Zephyr SDK)
@hakehuang hakehuang added the bug The issue is a bug, or the PR is fixing a bug label Jan 30, 2019
@hakehuang
Copy link
Collaborator Author

@MaureenHelm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

2 participants