Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    SD card doesn't work on pysense

    Scheduled Pinned Locked Moved Discussion
    pysensecodemicropython
    26 Posts 11 Posters 4.8k Views 12 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.
    • T Offline
      timh @robert-hh
      last edited by timh

      @robert-hh yes, though I can see the sd card and list contents. It's only writes that fail.
      Did a bit more poking around.

      Till now I have either tested just with USB or with external power on VIN and USB connected, and the writes failed always after I2C was initialised, and i2c deinit() didn't change the situation.

      Using USB was the easiest to test seeing the full reboot. rather than reconnecting wifi.

      What I have since discovered is removing USB connection and running off external power only, the SD card writes are now successful and reliable after I2C is initialized and being used.

      I need to do more testing to really confirm this is the case.

      Combine all of that with having to jumper G15 with 10K resistor etc for SD access makes the Expansion board 3.0 a bit of a pain compared with the 2.0 version. Also have had them go back into DFU mode a few times.

      1 Reply Last reply Reply Quote 0
      • T Offline
        timh
        last edited by

        I am doing all of this as we use Losant, and want to be able to change running config if sensors or other parameters are changed and want to update remotely over LTE.

        Really waiting for PyBytes to officially support LTE.

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          timh @timh
          last edited by

          @timh When we dig down the G15 pull up to enable SD card use 10K resistor,

          G15 is also SD_DAT. I wonder if when USB power is connected the 10K isn't quite correct and write operations once i2c is in use, causes insufficient voltage for SD writes ? I assume a write requires more power.

          Don't know enough about this level of operation.

          1 Reply Last reply Reply Quote 0
          • M Offline
            matthew4355
            last edited by

            some SD cards are not compatible with pysense so you have to check which card is compatible and working fine on it.

            1 Reply Last reply Reply Quote 0
            • R Offline
              randomrnti
              last edited by

              @freddy said in SD card doesn't work on pysense:

              os.mount(sd, '/sd')

              I was getting the error on os.mount(sd, '/sd')
              I found that cause the SD card was greater than 32GB that windows was only allowing it to be formatted to exFAT which doesn't work for the pycom. I had to delete all volumes of the SD card and create a new volume that was less than 32GB. Windows then could format to FAT32 and it worked from there

              1 Reply Last reply Reply Quote 0
              • S Offline
                SciWax @Henning
                last edited by SciWax

                @Henning

                I had the same issue with the Expansionboard v3.1. The issue got solved, after using another Expansionboard v3.1 I've bought recentely..... I never used the SD-Card slot on the first one before, so I don't know, why it seems to be broken. Well, at least it works flawless with the second Expansionboard.

                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
                • 1
                • 2
                • 2 / 2
                • First post
                  Last post

                Pycom on Twitter

                Pycom