🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Factory Test and Microphone example not compiling M5 Stick C Plus (latest version)

    M5 Stick/StickC
    1
    2
    1.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bazman
      last edited by

      Line 438 in M5StickCPlus\examples\FactoryTest.ino and line 55 M5StickCPlus\examples\Micophone.ino has a compile error on the line marked ----> below

      i2s_pin_config_t pin_config;
      #if (ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(4, 3, 0))
      --------> pin_config.mck_io_num = I2S_PIN_NO_CHANGE;
      #endif
      pin_config.bck_io_num = I2S_PIN_NO_CHANGE;

      The error is:

      C:\Projects\ArduinoSketchbooks\GPS-Mic-Test\GPS-Mic-Test.ino: In function 'bool InitI2SMicroPhone()':
      GPS-Mic-Test:438:16: error: 'struct i2s_pin_config_t' has no member named 'mck_io_num'; did you mean 'bck_io_num'?
      pin_config.mck_io_num = I2S_PIN_NO_CHANGE;
      ^~~~~~~~~~
      bck_io_num

      ...
      exit status 1
      'struct i2s_pin_config_t' has no member named 'mck_io_num'; did you mean 'bck_io_num'?

      B 1 Reply Last reply Reply Quote 0
      • B
        bazman @bazman
        last edited by

        @bazman Fix is to delete the line! Both the microphone example and the factory test project then work.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post