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

    CoreInk SD card in Micropython

    Modules
    3
    5
    3.4k
    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
      boardsurfer
      last edited by

      I need to hook up an SD card to a CoreInk unit using MicroPython. I have tried code that works perfectly with an ESP32 WROVER, as well as code from the boot.py file from an M5stack-CORE, but nothing works on the CoreInk. For example, the code:
      import machine, os
      sd = machine.SDCard(slot=3, miso=34, mosi=23, sck=18, cs=14)
      sd.info()
      os.mount(sd, '/sd')

      gives the error:
      OSError: (110, 'ESP_ERR_TIMEOUT')

      1 Reply Last reply Reply Quote 0
      • B
        boardsurfer
        last edited by

        No support for M5stack products at all anymore, it seems? Time to look for alternatives.

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

          Hello @boardsurfer

          with an Arduino program I can access the SD card just fine. That tells me the wiring is ok. (Note: I used GPIO25 as CS.)

          However with the same setup and using MicroPython I have not been able to access the SD card.

          Thanks
          Felix

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

          1 Reply Last reply Reply Quote 0
          • ajb2k3A
            ajb2k3
            last edited by

            Sdcard is missing fully for the core S3 so I assume there is a problem. I’m assured sdcard support will be added this week.

            UIFlow, so easy an adult can learn it!
            If I don't know it, be patient!
            I've ether not learned it or am too drunk to remember it!
            Author of the WIP UIFlow Handbook!
            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

            1 Reply Last reply Reply Quote 0
            • B
              boardsurfer
              last edited by boardsurfer

              Has anyone had success with MicroPython SD card access on the CoreInk? I just installed the firmware that seems to be about 1 week old, but all I get is different error messages when trying to mount the SD card. With slot 1 or 2, I get:

              E (8624) sdmmc_common: sdmmc_init_OCR: send_op_cond(1) returned 0x107

              With slot 2, I get:

              E (8049) spi_master: spi_bus_add_device(373): host not initialized
              E (8052) sdmmc_io: sdmmc_io_reset: unexpected return: 0x102

              With slot 3, I only get OSError(16,), without additional info.
              If anyone has gotten the SD card to work on the CoreInk, which slot and pins do you use? Is there any other initialization necessary?

              --
              Correction: it seems the only reason I get different error message is because I commented out sd.info(). With sd.info(), I still get the original error. So still no SD card support at all?

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