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

    Using WiFi on Tab5 with the Arduino IDE

    Scheduled Pinned Locked Moved General
    17 Posts 7 Posters 10.3k Views 2 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.
    • S Offline
      smily77 @teastain
      last edited by

      @teastain thanks but unfortunatly doesn't the Tab5 exist in 2.1.4 an simpler than the below can't the sketch be made:

      #include <M5Unified.h>
      #include <WiFi.h>
      void setup() {
      auto cfg = M5.config();
      M5.begin(cfg); // ← hier wird intern der C6 hochgefahren
      WiFi.begin(ssid, password);
      }

      teastainT 1 Reply Last reply Reply Quote 2
      • teastainT Offline
        teastain @smily77
        last edited by teastain

        @smily77 a-HA!
        Thank you.

        Cheers, Terry!

        100% M5Stack addict with several drawers full of product!

        felmueF 1 Reply Last reply Reply Quote 1
        • felmueF Offline
          felmue @teastain
          last edited by

          Hi guys

          the ESP32C6 is connected via SDIO bus to the ESP32P4 but unfortunately the GPIOs used in Tab5 differ from the GPIOs used by the ESP32P4 eval board.

          In other words the pre-compiled Arduino library is setup to use SDIO GPIOs which do not match the Tab5 hardware.

          So in order to use Arduino you'll need to pre-compile the Arduino library yourself using the Arduino library builder or setup the build system to use Arduino as ESP-IDF component. Both ways should allow to modify the SDIO GPIOs accordingly.

          Note: the SDIO GPIOs used in Tab5 can be found here.

          Thanks
          Felix

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

          1 Reply Last reply Reply Quote 1
          • S Offline
            smily77
            last edited by

            @felmue

            This applies as well if you use the M5Stack pkg? - is there a "how to" somewere for this?

            felmueF 1 Reply Last reply Reply Quote 1
            • felmueF Offline
              felmue @smily77
              last edited by

              Hello @smily77

              no, AFAIK there is no specific 'how to' for M5Tab5 - only the generic about how to build your own Arduino library using Arduino library builder or how to use Arduino as ESP-IDF component. See links above.

              Thanks
              Felix

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

              1 Reply Last reply Reply Quote 1
              • S Offline
                smily77
                last edited by

                There seams to be an additional Issue the Tab5 uses SDIO2 - The correct GPIO's only don't work

                felmueF 1 Reply Last reply Reply Quote 1
                • felmueF Offline
                  felmue @smily77
                  last edited by

                  Hello @smily77

                  I believe SDIO2 is used so the communication between ESP32P4 (master) and ESP32C6 (slave) can be exclusive, e.g. not shared with other slaves.

                  Thanks
                  Felix

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

                  1 Reply Last reply Reply Quote 1
                  • N Offline
                    New_Comix
                    last edited by

                    Hi there,

                    are there any (better) news about using Wifi within the Arduino environment?

                    kind regards
                    Jörg

                    felmueF 1 Reply Last reply Reply Quote 1
                    • felmueF Offline
                      felmue @New_Comix
                      last edited by

                      Hi guys

                      corresponding github issue for reference.

                      It seems there isn't an easier way just (yet) than using Espressif Library Builder.

                      Thanks
                      Felix

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

                      S 1 Reply Last reply Reply Quote 1
                      • S Offline
                        smily77 @felmue
                        last edited by

                        It was mentioned that in the next ESP-Arduino package 3.3.0 the issue with the connection will be solved by this possibility:

                        WiFi.setPins(clk, cmd, d0, d1, d2, d3, rst);
                        WiFi.begin(ssid, pass);

                        This sounds promising. However the Tab 5 doc's lists the Pins for clk, cmd, d0, d1, d2, d3 but not for the reset pin (rst). Does somebody know how the reset of the C6 is wired to the P4 in the Tab 5?

                        felmueF S 2 Replies Last reply Reply Quote 0
                        • felmueF Offline
                          felmue @smily77
                          last edited by

                          Hello @smily77

                          according to the schematic GPIO15 is used as reset pin (SOC_EXTRF_RST).

                          Thanks
                          Felix

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

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            sapphire @smily77
                            last edited by

                            @smily77 Did you manage to get the SD card reader to work?

                            K 1 Reply Last reply Reply Quote 0
                            • K Offline
                              Krmiller @sapphire
                              last edited by

                              @sapphire Same, can't get the SD to work. Anyone?

                              Thanks,
                              Kris

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                sapphire
                                last edited by sapphire

                                I managed to get the SD card reader to work.

                                H_SDIO_DRV error: sdio card init failed
                                The WiFi module (ESP32-C6) uses an independent set of dedicated pins (SDIO2_D0 to SDIO2_CK), thus avoiding any physical interface overlap and conflicts.

                                sd_mmc_card:
                                id: sd_card
                                clk_pin: GPIO43
                                cmd_pin: GPIO44
                                data0_pin: GPIO39
                                data1_pin: GPIO40
                                data2_pin: GPIO41
                                data3_pin: GPIO42
                                mode_1bit: false
                                slot: 0

                                esp32_hosted:
                                variant: esp32c6
                                active_high: true
                                clk_pin: GPIO12
                                cmd_pin: GPIO13
                                d0_pin: GPIO11
                                d1_pin: GPIO10
                                d2_pin: GPIO9
                                d3_pin: GPIO8
                                reset_pin: GPIO15
                                slot: 1

                                J 1 Reply Last reply Reply Quote 0
                                • J Offline
                                  jredrejo @sapphire
                                  last edited by

                                  @sapphire but this topic refers to WiFi. any one could solve this probem? I've tried all the steps I've could without success.
                                  It seems there are more people who are having this same issue, no way to use wifi in our Tab5: https://www.reddit.com/r/M5Stack/comments/1p04d3b/comment/ntozc4p/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

                                  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