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 not recognized in expansion board with LoPy and deepsleep shield

    Scheduled Pinned Locked Moved Expansion Board
    expansion boardlopysd card
    5 Posts 2 Posters 1.2k 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.
    • R Offline
      Robin
      last edited by

      I have inserted an 8GB FAT32 formatted SD card into an expansion board and put the deepsleep shield and LoPy on top of that. When i open REPL and do:

      from machine import SD
      sd = SD()

      i get: "OSError: the requested operation failed"

      Any clues to what is going on? The SD Card opens up fine in my Mac.

      I have a sensor attached to pins G11 and G24 on the expansion board. Could this be conflicting on the Uart? The LoPy is on firmware 1.7.9.b1

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jmarcelino @Robin
        last edited by jmarcelino

        @robin
        G11 is definitely connected to the SD card (SD_CMD) so you can't use it for other purposes if you need the SD card working.

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

          Thanks @jmarcelino
          The reference for the expansion board indeed lists this pin as being used by the SD card. Moved my sensor to G4 an G5. Its a pity G11 and G24 are the default Uart pins.

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

            @jmarcelino does this mean you cannot use UART and the SD card?
            I have not been able to use Uart 0 (this interfered with program and REPL execution) nor have i been able to redefine Uart 0 to different pins.

            Is there an example of how to use UART and SD together?

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jmarcelino @Robin
              last edited by

              @robin
              UART0 is a bit special - need to look into that myself - but you can easily redefine the UART1 pins (and UART2 unless on the GPy/FiPy)

              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