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

    SD card on M5 capsule - how to make it work ?

    Cores
    2
    5
    1.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.
    • L
      l31bn1tz
      last edited by

      Hi,

      I recently bought a M5 capsule, it's a super nice device. At one moment, i want to dump some files to the sd card. Unfortunately, no "sd" folder is recognized. I tried a micro sd card of 32Gb, 64Gb and 4GB. all are formatted in FAT32. But i don't see anything.

      Anyone having a similar issue ?

      Hope to solve this quick :)

      L31BN1TZ

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

        Have you imported and mounted the card?

        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
        • L
          l31bn1tz
          last edited by

          while connecting through thonny, i can only see flash and system at the root of the device.

          What do you mean by import and mount ?

          1 Reply Last reply Reply Quote 0
          • L
            l31bn1tz
            last edited by

            I solved the problem, for those having the same problem, i fix it by init the sd card :

            import os, sys, io
            import M5
            from M5 import *
            from hardware import *
            from hardware import sdcard

            def setup():
            M5.begin()
            sdcard.SDCard(slot=3, width=1, sck=14, miso=39, mosi=12, cs=11, freq=1000000)
            print(os.listdir('/sd/'))

            1 Reply Last reply Reply Quote 0
            • L
              l31bn1tz
              last edited by

              specific pins are available here : https://github.com/m5stack/M5Unified

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