PyEthernet and SD card
-
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?
-
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 -
@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?
-
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
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