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

    Difficulties finding microSD card (Expansion Board v3)

    Scheduled Pinned Locked Moved LoPy
    3 Posts 2 Posters 33 Views 2 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.
    • S Offline
      Steven Boonstoppel
      last edited by

      Hi guys,

      I am working on implementing OTA updates through the microSD holder on the Expansion Board v3 (v3.1 to be precise).
      I have two sets of LoPy4 + E.B. here for testing. One is bare with only an SSD1306 connected and always succeeds in finding the SD card, while the other has all other connections as well and has trouble finding the SD card.

      The SD card is initialized using these two lines and results in the error:

      >>> from machine import SD
      >>> sd = SD()
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      OSError: the requested operation failed
      

      As far as I can tell, the SD card uses pins 3, 4, 8, 9 and 10 from the pinout diagram. Pins 9 and 10 are able to use I2C meanwhile without any problems as I found out from testing my bare version. Pins 4 and 8 are always disconnected on both devices, and I am hoping to use Pin 3 although it is currently disconnected on both devices as well.

      Interestingly, from the REPL I am sometimes able to initialize the SD card on the full device as well! But after a reboot, it fails again. I have no clue why.

      Does anyone have a suggestion what I could be doing wrong or what could be tried to solve this problem?

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @Steven Boonstoppel
        last edited by

        @Steven-Boonstoppel The Pycom SDCard driver uses Pin 4, 8, and 23.

        S 1 Reply Last reply Reply Quote 1
        • S Offline
          Steven Boonstoppel @robert-hh
          last edited by

          @robert-hh thanks! I had read that somewhere momentarily and disconnected pin 23, but it was still pulled from software as a deepsleep wakeup pin. So removing the jumper was not enough. Moved the pin and it works now, thanks!

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

          Pycom on Twitter

          Pycom