intergalaktik / ULX4M-CM4-HAT

GNU General Public License v3.0
2 stars 0 forks source link

SD card not working with ESP32-WROOM #4

Open emard opened 2 years ago

emard commented 2 years ago

with passthru from DFU, setting io12 on (this pin is used with SD card) reboots ESP32 passthru somehow connects rising io12 pin with EN, disabling driving EN from passthru doesn't reboot anymore otherwise

>>> from machine import Pin
>>> p12=Pin(12,Pin.OUT)
>>> p12.on()
>>> Started webrepl in normal mode
ssid: ra chan: 1 rssi: -28 authmode: WPA2-PSK
FTP server started on 192.168.48.193:21
NTP not available
MicroPython v1.14 on 2021-02-02; ESP32 module with ESP32
Type "help()" for more information.
emard commented 2 years ago

second reason why SD card doesn't work is that wifi pins 2 and 12 are connected together

assign led = {wifi_gpio15, wifi_gpio14, wifi_gpio13, wifi_gpio12};

>>> from machine import Pin
>>> p2=Pin(2,Pin.OUT)
>>> p2.on()
>>> p2.off()
>>> p12=Pin(12,Pin.OUT)
>>> p12.on() # same LED turns on as with p2.on()
>>> p12.off()
goran-mahovlic commented 2 years ago

SD card is working on WROVER - so maybe you can check if gpio 2 and gpio 12 are bricked on your HAT board?