none
Micro SD Card is write protected, how do I enable write permission RRS feed

  • Question

  • Running on iMX6 System using WEC7 and the micro SD card is inserted into system without an adapter. Is there a way to make the micro SD card writable? I do not have a gpio pin connected to the micro SD device.

    Here are snippets from my register files using USDHC driver.

    [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\USDHC3]
        "Order"=dword:21
        "Dll"="usdhc.dll"
        "Prefix"="SHC"
        "Index"=dword:3
        ;"CardDetectOpt"=dword:2 ; VALUE CHANGED FROM 0 TO 2 FOR ALWAYS DETECT ENABLED
        ;"DisableDMA"=dword:1                                      ; Use this reg setting to disable both internal and external DMA
        "SDIOPriority"=dword:61
        "MaximumClockFrequency"=dword:3197500           ; 52 MHz max clock speed
        ;"WakeupSource"=dword:1                                  ; this will enable system wakeup when card is inserted or removed during suspend state

    [HKEY_LOCAL_MACHINE\SYSTEM\StorageManager\FATFS]
        "FormatExfat"=dword:1
        "DisableAutoFormat"=dword:0

    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDMemory]
        "Name"="SD Memory Card"
        "Folder"="SDMemory"
        
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDHCMemory]
        "DriverPath"="Drivers\\BuiltIn\\USDHC3"
        "Name"="SDHC Memory"
        "Folder"="Storage Card"
        "AutoPart"=dword:1
        "AutoMount"=dword:1
        "AutoFormat"=dword:1
        "DefaultFileSystem"="FATFS"
        "PartitionDriverName"="MSPART"   

       
     [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDHCMemory\FATFS]
        "FormatFatVersion"=dword:20 



    Wednesday, April 25, 2018 12:36 PM

Answers

  • The only one blocking writes is your USDHC driver code. It is probably trying to read some hardcoded GPIO and ignoring whatever you have configured in the registry.

    Bad BSP...


    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Proven Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Wednesday, April 25, 2018 2:02 PM
    Moderator

All replies

  • The only one blocking writes is your USDHC driver code. It is probably trying to read some hardcoded GPIO and ignoring whatever you have configured in the registry.

    Bad BSP...


    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Proven Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Wednesday, April 25, 2018 2:02 PM
    Moderator
  • Yeah I know about the BSP, still riding that horse. Thanks I will look at the USDHC driver code and see about the gpio?
    Wednesday, April 25, 2018 2:16 PM
  • Driver is checking a signal that does not exist.
    Wednesday, April 25, 2018 3:23 PM