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

    PyEthernet and SD card

    Scheduled Pinned Locked Moved WiPy 2&3
    4 Posts 2 Posters 34 Views 3 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.
    • K Offline
      Kaspars Golts
      last edited by

      Hi,

      Was checking PyGate document for PyEthernet module and noticed that ETH_MOSI connection of PyEthernet uses the same pin on WiPy as SD CLK card. Is it possible to use SD card and PyEthernet module together?

      What are my options here?

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by Gijs

        Hi,
        You should be able to rebind the SPI pins (MOSI, MISO and CLK) for the PyEthernet on your development module so there is no conflict, though that will not work with the current Ethernet library included in the Pygate firmware. You can compile a custom firmware where you change the pins, which should result in both modules working. There is not that much flexibility in the SD card pins I believe.

        If you change the lines here: https://github.com/pycom/pycom-micropython-sigfox/blob/Dev/drivers/ksz8851/ksz8851conf.h i believe it should work
        Gijs

        K 1 Reply Last reply Reply Quote 1
        • K Offline
          Kaspars Golts @Gijs
          last edited by

          @Gijs, is it possible to compile ksz8851 as a separate library with my modifications, so that I could use stock firmware with my Ethernet library? I would use pybytes firmware as a base and add lib to my code. Not sure how to do that?

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gijs
            last edited by

            Yea I dont know either. You would probably need to edit the library and build it into the firmware, while selecting the Pybytes variant. The readme https://github.com/pycom/pycom-micropython-sigfox has a guide on how to build the firmware from source. Let me know if you run into issues!

            Gijs

            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