🤖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)

    Scheduled Pinned Locked Moved M5 Stick/StickC
    2 Posts 1 Posters 2.8k Views 1 Watching
    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 Offline
      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 Offline
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post