🤖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

    General
    3
    7
    224
    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
      smily77
      last edited by

      I got my Tab5 - cool thing :-) but I I have an issue with WiFi.

      Basically the C6 should work as a coprocessor connected with SIDO. This should allow using Wifi as normal with:

      #include <WiFi.h>
      WiFi.begin(ssid, password);
      

      in the Arduino IDE. But instead a runtime error appears, and it restarts amd so on

               sdio_mempool_create free:34078468 min-free:34077500 lfb-def:33030132 lfb-8bit:33030132
      
              E (1734) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
              E (1734) sdio_wrapper: sdmmc_card_init failed
              E (4372) H_SDIO_DRV: sdio card init failed
      
             FreeRTOS: FreeRTOS Task "sdio_read" should not return, Aborting now!
      

      Does anyone know how to fix or have just a working example (there isn't any example around and even the P4 example with WiFi in the arduino IDE do not work)

      Arduino IDE : 2.3.6; M5Stack Package 3.2.0 (all M5Stack lib on the latest state as well)

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

        @smily77 said in Using WiFi on Tab5 with the Arduino IDE:

        M5Stack Package 3.2.0

        This board pkg (3.20) seems to be broken for many of us.
        We have had to revert to ver2.14 and I have notified M5Stack support.

        Try reverting and see.
        If still a problem make a simpler de-bug version of your sketch and add complications.

        Cheers, Terry!

        100% M5Stack addict with several drawers full of product!

        S 1 Reply Last reply Reply Quote 0
        • S
          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 1
          • teastainT
            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 0
            • felmueF
              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 0
              • S
                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 0
                • felmueF
                  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 0
                  • First post
                    Last post