Просмотр исходного кода

Document AI Thinker SD GPIO12 strap and GPIO13 release

SybexXx 3 дней назад
Родитель
Сommit
8ad7253fcf
1 измененных файлов с 18 добавлено и 6 удалено
  1. 18 6
      code/components/jomjol_controlGPIO/BOARD_GPIO_PROFILES.md

+ 18 - 6
code/components/jomjol_controlGPIO/BOARD_GPIO_PROFILES.md

@@ -24,18 +24,30 @@ and declares the capabilities that the requested mode needs.
 The current build selects BOARD_ESP32CAM_AITHINKER and defines
 __SD_USE_ONE_LINE_MODE__.
 
-The user GPIO whitelist is deliberately empty. GPIO13 (SD DAT3) is not part
-of the active 1-bit data bus, but main.cpp explicitly configures a pull-up on
-GPIO_SDCARD_D3. It therefore remains part of the SD-card electrical
-configuration and is not exposed as a safe general-purpose pin until that
-interaction is validated on hardware.
+The AI-Thinker profile exposes GPIO13 as one user-configurable digital pin
+when `__SD_USE_ONE_LINE_MODE__` is enabled. Startup order matters: main.cpp
+sets a pull-up on GPIO_SDCARD_D3 before mounting the card, mounts the SD card
+in 1-bit mode, and only later creates the generic GPIO handler. At that point
+DAT3 is not part of the active 1-bit data bus and the handler may reconfigure
+GPIO13 as input or output. The initial pull-up remains in place until the
+handler takes ownership of that pin.
+
+GPIO12 is deliberately still reserved. Although D2 is not assigned to the
+SDMMC host in 1-bit mode (`GPIO_SDCARD_D2 = GPIO_NUM_NC`), the board's SD
+socket still physically connects the card's DAT2 contact to GPIO12. GPIO12
+is also the ESP32 MTDI strapping pin that selects flash supply voltage and is
+sampled before firmware startup. Espressif documents a DAT2 pull-up conflict
+for 3.3 V flash modules, including in the 1-bit SD context. Do not release
+GPIO12 for a generic user function unless the exact module has its 3.3 V flash
+voltage eFuses permanently configured or DAT2 is physically isolated from
+GPIO12 and correctly biased. The firmware must not burn eFuses automatically.
 
 GPIO0, GPIO1, GPIO3, GPIO4, GPIO12 and all camera/SD/flash/memory pins are not
 general-purpose user pins. In particular:
 - GPIO0 is the camera XCLK and a boot-strapping pin.
 - GPIO1/GPIO3 are UART0 TX/RX.
 - GPIO4 is the board flash LED.
-- GPIO12 is a boot-strapping pin.
+- GPIO12 is DAT2 and the MTDI flash-voltage strapping pin.
 - GPIO2, GPIO14 and GPIO15 belong to the active 1-bit SDMMC interface.
 - Camera, flash/PSRAM and board status LED pins remain reserved.