Skip to content

mimxrt10xx: Wrong I2C transfer status #13819

@loicpoulain

Description

@loicpoulain

Describe the bug
When running samples/drivers/i2c_scanner, application wrongly reports slaves found on multiple addresses. It is actually due to transfer success instead of failure. Interesting to note that only odd addresses are reported. Logic analyzer screenshot below.

To Reproduce
Steps to reproduce the behavior:

  1. cd samples/drivers/i2c_scanner
  2. west build -b mimxrt1064_evk

Expected behavior
Only connected slave reported
I2C transfer failure on NAK

Impact
What impact does this issue have on your progress (e.g., annoyance, showstopper)

Screenshots or console output
***** Booting Zephyr OS v1.14.0-rc1-458-g41dad49 *****
Starting i2c scanner...
0x 5 FOUND
0x 7 FOUND
0x 9 FOUND
0x b FOUND
0x d FOUND
0x f FOUND
0x11 FOUND
0x13 FOUND
0x15 FOUND
0x17 FOUND
0x19 FOUND
0x1a FOUND
0x1c FOUND
0x1e FOUND
0x20 FOUND
0x22 FOUND
0x24 FOUND
0x26 FOUND
0x28 FOUND
0x2a FOUND
0x2c FOUND
0x2e FOUND
0x30 FOUND
0x32 FOUND
0x34 FOUND
0x36 FOUND
0x38 FOUND
0x3a FOUND
0x3c FOUND
0x3e FOUND
0x40 FOUND
0x42 FOUND
0x44 FOUND
0x46 FOUND
0x48 FOUND
0x4a FOUND
0x4c FOUND
0x4e FOUND
0x50 FOUND
0x52 FOUND
0x54 FOUND
0x56 FOUND
0x58 FOUND
0x5a FOUND
0x5c FOUND
0x5e FOUND
0x60 FOUND
0x62 FOUND
0x64 FOUND
0x66 FOUND
0x68 FOUND
0x6a FOUND
0x6c FOUND
0x6e FOUND
0x70 FOUND
0x72 FOUND
0x74 FOUND
0x76 FOUND

0x05_transfer_wrongly_reported

Environment (please complete the following information):

  • OS: Linux
  • Toolchain: Zephyr SDK

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions