Skip to content

mcp23017: fatal error: i2c_bus.h: no such file or directory (AEGHB-1192) #567

@stkw0

Description

@stkw0

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.5.0

Espressif SoC revision.

ESP32-P4 (revision v1.0)

Operating System used.

Linux

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

Development Kit.

Olimex ESP32-P4-DevKit

Steps to reproduce.

  1. copy get-started/hello_world project
  2. idf add-dependency mcp23017
  3. modify hello_world_main.c and add #include "mcp23017.h"
  4. idf build

Build Logs.

/tmp/hello_world/managed_components/espressif__mcp23017/include/mcp23017.h:10:10: fatal error: i2c_bus.h: No such file or directory
   10 | #include "i2c_bus.h"
      |          ^~~~~~~~~~~

More Information.

Seems that mcp23017 component uses the removed i2c driver instead of the new one. I think it should be ported to use the driver/i2c_master.h

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions