Skip to content

ESP32_S3_ALL_UART SDCard stopped working after 6/2/2025 #1702

@DarkNoir

Description

@DarkNoir

Target name(s)

ESP32_S3_ALL_UART

Firmware version

1.14.0.179

Was working before? On which version?

Version dating back to 6/2/2025

Device capabilities

System Information
HAL build info: nanoCLR running @ ESP32_S3 built with ESP-IDF v5.4.2
Target: ESP32_S3_ALL_UART
Platform: ESP32

Firmware build Info:
Date: Dec 18 2025
Type: MinSizeRel build, chip rev. >= 0, support for PSRAM, support for BLE
CLR Version: 1.14.0.179
Compiler: GNU ARM GCC v14.2.0

OEM Product codes (vendor, model, SKU): 0, 0, 0

Serial Numbers (module, system):
00000000000000000000000000000000
1000000000983DAE9DC76C

Target capabilities:
Has nanoBooter: NO
IFU capable: NO
Has proprietary bootloader: YES

AppDomains:

Assemblies:
ESP32_S3_ALL_UART_SDCARDISSUE, 1.0.0.0
nanoFramework.Hardware.Esp32, 1.6.37.0
mscorlib, 1.17.11.0
nanoFramework.System.Text, 1.3.42.0
System.IO.Streams, 1.1.96.0
System.IO.FileSystem, 1.1.87.0
nanoFramework.Runtime.Events, 1.11.32.0

Native Assemblies:
mscorlib v100.5.0.24, checksum 0x1549C856
nanoFramework.Runtime.Native v100.0.10.0, checksum 0x0EAE898B
nanoFramework.Hardware.Esp32 v100.0.10.0, checksum 0x6A20A689
nanoFramework.Hardware.Esp32.Rmt v100.0.5.1, checksum 0x8ADAC728
nanoFramework.Device.Bluetooth v100.0.5.0, checksum 0xE610B405
nanoFramework.Graphics v100.0.0.10, checksum 0x6A3F90DD
nanoFramework.Device.OneWire v100.0.4.0, checksum 0xB95C43B4
nanoFramework.Networking.Sntp v100.0.4.4, checksum 0xE2D9BDED
nanoFramework.ResourceManager v100.0.0.1, checksum 0xDCD7DF4D
nanoFramework.System.Collections v100.0.2.0, checksum 0x40DC251F
nanoFramework.System.Text v100.0.0.1, checksum 0x8E6EB73D
nanoFramework.System.IO.Hashing v100.0.0.1, checksum 0xEBD8ED20
nanoFramework.System.Security.Cryptography v100.0.0.3, checksum 0x343142CA
nanoFramework.Runtime.Events v100.0.8.0, checksum 0x0EAB00C9
EventSink v1.0.0.0, checksum 0xF32F4C3E
System.IO.FileSystem v1.1.0.4, checksum 0x1777E2FE
System.Math v100.0.5.5, checksum 0x9F9E2A7E
System.Net v100.2.0.11, checksum 0xD82C1452
System.Device.Adc v100.0.0.0, checksum 0xE5B80F0B
System.Device.Gpio v100.1.0.6, checksum 0x097E7BC5
System.Device.I2c v100.0.0.2, checksum 0xFA806D33
System.Device.I2c.Slave v1.0.0.0, checksum 0x4238164B
System.Device.I2s v100.0.0.1, checksum 0x478490FE
System.Device.Pwm v100.1.0.4, checksum 0xABF532C3
System.IO.Ports v100.1.6.1, checksum 0xB798CE30
System.Device.Spi v100.1.2.0, checksum 0x3F6E2A7E
System.Runtime.Serialization v100.0.0.0, checksum 0x0A066871
System.Device.Wifi v100.0.6.5, checksum 0x030E2768

++++++++++++++++++++++++++++++++
++ Memory Map ++
++++++++++++++++++++++++++++++++
Type Start Size
++++++++++++++++++++++++++++++++
RAM 0x3fcbf544 0x00011124
FLASH 0x00000000 0x01000000

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++ Flash Sector Map ++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Region Start Blocks Bytes/Block Usage
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
0 0x00010000 1 0x1A0000 nanoCLR
1 0x001B0000 1 0x2E0000 Deployment
2 0x00490000 1 0x300000 Configuration

+++++++++++++++++++++++++++++++++++++++++++++++++++
++ Storage Usage Map ++
+++++++++++++++++++++++++++++++++++++++++++++++++++
Start Size (kB) Usage
+++++++++++++++++++++++++++++++++++++++++++++++++++
0x00490000 0x300000 (3072kB) Configuration
0x00010000 0x1A0000 (1664kB) nanoCLR
0x001B0000 0x2E0000 (2944kB) Deployment

Description

Was working in build from 6/2/2025 (Last time I flashed the device). Was going to add some new functionality so updated and SD Card stopped mounting:

++++ Exception System.Exception - CLR_E_VOLUME_NOT_FOUND (1) ++++ ++++ Message: ++++ nanoFramework.System.IO.FileSystem.SDCard::MountNative [IP: 0000] ++++ ++++ nanoFramework.System.IO.FileSystem.SDCard::Mount [IP: 0004] ++++ ++++ ESP32_S3_ALL_UART_SDCARDISSUE.Program::Main [IP: 000b] ++++

How to reproduce

Code that was working:


            Configuration.SetPinFunction(Gpio.IO04, DeviceFunction.SDMMC1_COMMAND);
            Configuration.SetPinFunction(Gpio.IO05, DeviceFunction.SDMMC1_CLOCK);
            Configuration.SetPinFunction(Gpio.IO06, DeviceFunction.SDMMC1_D0);


            // Boards with SDIO/MMC interface with 1 bit data lines ( e.g. ESP32 Olimex EVB , POE )
            _SDCard = new SDCard(new SDCardMmcParameters { dataWidth = SDCard.SDDataWidth._1_bit }, new CardDetectParameters { autoMount = false, enableCardDetectPin = true, cardDetectedState = false, cardDetectPin = 46 });
            try
            {
                _SDCard.Mount();

                Debug.WriteLine("Card Mounted");
                File.AppendAllText("D:\\sdcard.txt", "Hello from SD Card!");
                string txt = File.ReadAllText("D:\\sdcard.txt");
                Debug.WriteLine($"Read from SD Card: {txt}");
            }
            catch (Exception ex)
            {
                Debug.WriteLine($"Card failed to mount : {ex.Message}");
                Debug.WriteLine($"IsMounted {_SDCard.IsMounted}");
            }

Expected behaviour

Used to mount and allow file read and writes per code supplied (Exact code from project that was working)

Screenshots

No response

Aditional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions