imxRT1060 USDHC2 CMD pin configuration issue

cancel
Showing results for 
Search instead for 
Did you mean: 

imxRT1060 USDHC2 CMD pin configuration issue

Jump to solution
582 Views
ajoao_sousa
Contributor I

Hi,

My team is developing a board with imxrt1060 and are using the USDHC2 to interface eMMC chip.

At this moment the problem is when we try to set pinx mux for SD_B1_05_USDHC2_CMD pin. The code gets stuck.

After a long time of research, i saw that even in Eval kit, if we call IOMUXC_SetPinMux() for pin IOMUXC_GPIO_SD_B1_05_USDHC2_CMD , the code get stuck.

You try it in using any sample code from SDK.

As an example, you can use hello_world example and in pin_mux.c file, add the following lines:

IOMUXC_SetPinMux(
IOMUXC_GPIO_SD_B1_05_USDHC2_CMD, 
0U); 

IOMUXC_SetPinConfig(
IOMUXC_GPIO_SD_B1_05_USDHC2_CMD, 
0x017089u); 

After executing the first line, code gets stuck.

In Eval kit, that GPIO (GPIO_SD_B1_05) is not connected (0 ohm resistor is not place in HyperFlash interface).

I also attached the hello_world example with this change for MCUXPresso IDE.

Labels (1)
1 Solution
441 Views
jeremyzhou
NXP TechSupport
NXP TechSupport

Hi António Sousa ,

Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
For QSPI Flash as XIP function, to achieve the highest performance, it is recommended to left FLEXSPI_A_DQS(GPIO_SD_B1_05)pin floating and config-sample clock source as 01-loopback from DQS pad mode to achieve max 133MHz Flexspi_clk. Definitely, it's also forbidden to modify the function of GPIO_SD_B1_05.

Hope this is clear.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
442 Views
jeremyzhou
NXP TechSupport
NXP TechSupport

Hi António Sousa ,

Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
For QSPI Flash as XIP function, to achieve the highest performance, it is recommended to left FLEXSPI_A_DQS(GPIO_SD_B1_05)pin floating and config-sample clock source as 01-loopback from DQS pad mode to achieve max 133MHz Flexspi_clk. Definitely, it's also forbidden to modify the function of GPIO_SD_B1_05.

Hope this is clear.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
441 Views
ajoao_sousa
Contributor I

Thank you jeremyzhou.

You are right, are analysing carefully, pin SD_B1_05 is used for FlexSPI_A_DQS pin, so it is not possible to configured that pin for other functionality.

In Evaluation Kit and in our board, DQS is not connected to QSPI Flash.

What I did to use the pin SD_B1_05 for USDHC_CMD was to disable FlexSPI DQS functionality.

In evkmimxrt1060_flexspi_nor_config.c i replaced:

..readSampleClkSrc = kFlexSPIReadSampleClk_LoopbackFromDqsPad

by

.readSampleClkSrc = kFlexSPIReadSampleClk_LoopbackInternally

With this, FlexSPI_A do not use DQS functionality and we can configure SD_B1_05 for other functionalities.

0 Kudos
441 Views
jeremyzhou
NXP TechSupport
NXP TechSupport

Hi António Sousa,

Thanks for your reply.
Yes, it's possible to do it, however, the i.MX RT1060 can't run as fast as before. It can only up to 133MHz in SDR Mode, 66MHz in DDR Mode with internal DQS loopback mode.
In my opinion, we don't suggest the developer try this.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos