Skip to content

"FT6202: bad FT6206_REG_VENDID!" on the current M5Stack Core2 revision #1064

@meganetaaan

Description

@meganetaaan

Build environment: Any OS
Target device: esp32/m5stack_core2

Description
I am reporting this issue because changes on the Moddable side are required for the issue in stack-chan/stack-chan#135. Due to a specification change in the touch control chip for M5Stack Core2, the value of VENDID has been changed from 17 to 1.

Steps to Reproduce

  1. Build and install any app using: mcconfig -m -d -p esp32/m5stack_core2
  2. See error
/Users/apple/dev/moddable/modules/drivers/ft6206/modFt6206.c (131) # Break: FT6202: bad FT6206_REG_VENDID!

Expected behavior
The app should launch without errors.

Other information

I have received a report that the issue was resolved after modifying the relevant code to

if ((1 != data[0]) && (17 != data[0])) xsUnknownError("bad FT6206_REG_VENDID");

However, it is necessary to consider whether this workaround is appropriate as a driver for FT6202.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions