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

    Error compiling for board M5Stack-ATOM

    General
    2
    4
    5.7k
    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.
    • V
      vgamlc
      last edited by

      When updating M5stack boards on arduino platform, it has given me the following error:
      Arduino: 1.8.19 (Windows 10), Board: "M5Stack-ATOM, Default, 1500000, None"

      In file included from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:116,
      from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:8,
      from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms.h:36,
      from C:\DISE�OS\Arduino\libraries\FastLED\src/FastLED.h:52,
      from C:\DISE�OS\Arduino\libraries\M5Atom\src/M5Atom.h:54,
      from C:\DISEÑOS\Arduino\libraries\M5Atom\examples\Basics\LEDSet\LEDSet.ino:13:
      C:\Users\Vicente\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]
      #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead
      ^~~~~~~
      In file included from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:116,
      from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:8,
      from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms.h:36,
      from C:\DISE�OS\Arduino\libraries\FastLED\src/FastLED.h:52,
      from C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.h:54,
      from C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.cpp:4:
      C:\Users\Vicente\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]
      #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead
      ^~~~~~~
      C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.cpp: In member function 'void M5Atom::begin(bool, bool, bool)':
      C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.cpp:23:28: error: call of overloaded 'begin(int, int, int)' is ambiguous
      Wire.begin(25, 21, 100000);
      ^
      In file included from C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.h:53,
      from C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.cpp:4:
      C:\Users\Vicente\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1\libraries\Wire\src/Wire.h:79:10: note: candidate: 'bool TwoWire::begin(int, int, uint32_t)'
      bool begin(int sda=-1, int scl=-1, uint32_t frequency=0); // returns true, if successful init of i2c bus
      ^~~~~
      C:\Users\Vicente\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1\libraries\Wire\src/Wire.h:80:10: note: candidate: 'bool TwoWire::begin(uint8_t, int, int, uint32_t)'
      bool begin(uint8_t slaveAddr, int sda=-1, int scl=-1, uint32_t frequency=0);
      ^~~~~
      exit status 1
      Error compiling for board M5Stack-ATOM.

      I would need help, thanks in advance

      1 Reply Last reply Reply Quote 1
      • felmueF
        felmue
        last edited by felmue

        Hello @vgamlc

        to get rid of the ambiguous error I had to fix two files: M5Atom.cpp and MPU6886.cpp.

        In M5Atom.cpp I've replaced this line:

          Wire.begin(25, 21, 100000);
        

        with (note the U at the end):

          Wire.begin(25, 21, 100000U);
        

        and in MPU6886.cpp I've replaced this line:

          Wire1.begin(25,21,100000);
        

        with: (note the U at the end)

          Wire1.begin(25,21, 100000U);
        

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        V 1 Reply Last reply Reply Quote 1
        • V
          vgamlc @felmue
          last edited by

          You are a machine, thank you very much.

          1 Reply Last reply Reply Quote 0
          • felmueF
            felmue
            last edited by

            Hello @vgamlc

            thank you and you are welcome. Thank you for your feedback.

            Happy New Year!

            Felix

            GPIO translation table M5Stack / M5Core2
            Information about various M5Stack products.
            Code examples

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