OLIMEX / ESP32-POE

ESP32 IoT development board with 100Mb Ethernet and 802.3 Power Over Ethernet (POE)
Apache License 2.0
292 stars 110 forks source link

SD card reader conflicts with Ethernet interface PHY_PWR pin #14

Closed cyberman54 closed 4 years ago

cyberman54 commented 4 years ago

GPIO12 is used for PHY_PWR switch on this board. But in ESP IDF it is used for Data3 of 4bit SDMMC interface. Unfortunately forcing to 1bit SDMMC interface seems not to work with arduino esp32. I posted a PR to solve this: https://github.com/espressif/arduino-esp32/pull/4020

DanKoloff commented 4 years ago

Ummm 1bit SDMMC works with Arduino IDE, we have also defined it in our board configuration as "#define BOARD_HAS_1BIT_SDMMC":

https://github.com/espressif/arduino-esp32/blob/master/variants/esp32-poe/pins_arduino.h

Make sure you are selecting the proper board. Try this example:

https://raw.githubusercontent.com/OLIMEX/ESP32-POE/master/SOFTWARE/ARDUINO/ESP32_PoE_Ethernet_SD_Card_Arduino/ESP32_PoE_Ethernet_SD_Card_Arduino.ino

DanKoloff commented 4 years ago

https://github.com/espressif/arduino-esp32/issues/3903

DanKoloff commented 4 years ago

Thanks, I see it was merged now.

cyberman54 commented 4 years ago

For reference, from esp32 Forum:

https://www.esp32.com/viewtopic.php?t=4838