🤖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 ?

    Scheduled Pinned Locked Moved Cores
    5 Posts 2 Posters 3.3k Views
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              l31bn1tz
              last edited by

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

              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