how to modify HS400 or HS200 at imx-iotcore driver usdhc in Windows 10 IOT Core on IMX8mq evk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to modify HS400 or HS200 at imx-iotcore driver usdhc in Windows 10 IOT Core on IMX8mq evk

1,089 Views
tom_shen
Contributor II

Hello Experts,

    I want to modify HS400 or HS200 eMMC speed at imx-iotcore driver usdhc in Windows 10 IOT Core on IMX8mq evk, but I can’t modify it correctly. Can you tell me how to modify it?

 

By the way,

Is it that the eMMC bus width cannot be automatically judged and always used 8 bits bus width?

 

thanks

 

0 Kudos
5 Replies

1,077 Views
igorpadykov
NXP Employee
NXP Employee

Hi Shen

 

emms driver performs HS400 or HS200 selection automatically, no code modification is needed.

Procedure is described in emmc JESD84-B50 specification  https://www.jedec.org/sites/default/files/docs/JESD84-B50.pdf

In HS400 mode only 8-bit bus width is supported.  Bus width is defined by Extend CSD register

BUS_WIDTH [183]. It is set to ‘0’ (1 bit data bus) after power up and can be changed by a SWITCH command. After host initializes the emmc device, it verify that the device supports the HS200/400

mode by reading the DEVICE_TYPE field in the Extended CSD register.

 

Best regards
igor

0 Kudos

1,068 Views
tom_shen
Contributor II

Hi igorpadykov

I agree that emmc driver performs HS400 or HS200 selection automatically for the linux driver,
but the driver in the Windows iot core does not seem to be HS400 or HS200 selection automaticallyat least from the existing code base (from W1809_1_1_0_imx-iotcore.zip)

imx-iotcore\driver\sd\imxusdhc\usdhc.cpp

tom_shen_0-1617430077488.png

tom_shen_1-1617430100528.png

Could you suggest how to modify it in windows10 IoT core? (because I modify capabilitiesPtr->Supported.HS200 = 1 and capabilitiesPtr->Supported.HS400 = 1, this modification would result in fail to boot up)

thanks

 

0 Kudos

1,052 Views
igorpadykov
NXP Employee
NXP Employee

one can look at linux driver described in sect.3.3 MMC/SD/SDIO Host  i.MX Linux Reference Manual​

and try to port it.

 

Best regards
igor

 

0 Kudos

1,013 Views
tom_shen
Contributor II

Will NXP still release a new version of BSP and firmeware source code for Win10 IoT core?

https://www.nxp.com/design/software/embedded-software/i-mx-software/windows-10-iot-core-for-i-mx-app...

 

0 Kudos

1,008 Views
igorpadykov
NXP Employee
NXP Employee

for future release plans please apply to local marketing office.

 

Best regards
igor

 

0 Kudos