alf45tar / PedalinoMini

Wireless and Bluetooth MIDI Foot Controller
GNU General Public License v3.0
470 stars 84 forks source link

PIN 12 HIGH on boot #507

Closed upgrader-dev closed 1 month ago

upgrader-dev commented 2 months ago

Hello.

I'm bulding a simple Pedalino with 4 buttons.

The pedal 4 is linked to the PIN 12 on TTGO T-display.

But when I connect this PIN 12 to my footswitch, the boot is impossible.

If I switch to pedal 5, everything works flawlessly.

Lately I found this issue with LilYGO that says that PIN 12 HIGH is used to determine if boot lust be done from SD card. https://github.com/LilyGO/TTGO-T5-ePaper1.54/issues/3

Found what the documentation says about that and this link below :

https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/sd_pullup_requirements.html#mtdi-strapping-pin

Still can't figure out how to connect pedal 4 without making a HIGH at boot on PIN 12 which activates the 1.8V regulator instead of the 3;3v I need

What do you guys think about that?

alf45tar commented 2 months ago

Which board are you using? I don't have the issue with LILYGO® TTGO T-Display.

upgrader-dev commented 2 months ago

image

alf45tar commented 2 months ago

The permanent solution is here even if I am not using it on my board.

https://github.com/espressif/esp-idf/tree/release/v3.2/examples/storage/sd_card#note-about-gpio12

upgrader-dev commented 2 months ago

Thank you. So, just to check I understood... I have to insert these lines

components/esptool_py/esptool/espefuse.py set_flash_voltage 3.3V

in the right file to force the 3.3V function.

Which file do I have to insert this line in?

alf45tar commented 2 months ago

I think it is an one time only command. Setting is permanent stored into efuse and cannot changed anymore.