Which pin is for detecting USDHC2 card insert in i.MX8M Mini manufacture mode?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Which pin is for detecting USDHC2 card insert in i.MX8M Mini manufacture mode?

跳至解决方案
2,619 次查看
m_c
Senior Contributor I

In i.MX8M Mini reference manual <http://nxp.com/doc/imx8mmrm>, 6.1.2.4 it said "Before going into USB serial mode, Boot ROM detect SD/MMC card on USDHC2 port. If a card is inserted, ROM will try to boot from it. This is the so-called Manufacture SD/MMC boot".

But in table 6-22, the CD_B of USDHC2 is empty.

So which pin is for detecting USDHC2 card insert in i.MX8M Mini manufacture mode?

pastedImage_1.png

标签 (1)
0 项奖励
回复
1 解答
2,410 次查看
ankitr_patel
Senior Contributor II

Hi m.c,

As described in RM topic:

10.3.3.7 Card insertion and removal detection

"The uSDHC module uses either the DATA3 pin or the CD_B pin to detect card insertion or removal. When there is no card on the MMC/SD bus, the DATA3 is pulled to a low voltage level by default.
When any card is inserted to or removed from the socket, uSDHC detects the logic value changes on the DATA3 pin and generates an interrupt. When the DATA3 pin is not used for card detection (for example, it is implemented in GPIO), the CD_B pin must be connected for card detection. Whether DATA3 is configured for card detection or not, the CD_B pin is always a reference for card detection. Whether the DATA3 pin or the CD_B pin is used to detect card insertion, uSDHC sends an interrupt (if enabled) to inform the Host system that a card is inserted."

Please refer to 10.3 Ultra Secured Digital Host Controller (uSDHC) in RM for more details

Regards,

Ankit Patel

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,410 次查看
marcelziswiler
Senior Contributor I

I tried both CD_B as well as DATA3 on USDHC2, however, so far without any luck. As the reference manual is seriously lacking properly documenting exact usage of the manufacture mode, can somebody please confirm whether or not and how exactly this actually truly works? Thanks!

0 项奖励
回复
2,410 次查看
fernando_lopes
Contributor II

Hi Marcel,

did you solve this problem?

I am working on a board design that will use i.MX8M Mini and it will need to boot from the SD Card. Maybe your experience can help me to make a board that works.

0 项奖励
回复
2,411 次查看
ankitr_patel
Senior Contributor II

Hi m.c,

As described in RM topic:

10.3.3.7 Card insertion and removal detection

"The uSDHC module uses either the DATA3 pin or the CD_B pin to detect card insertion or removal. When there is no card on the MMC/SD bus, the DATA3 is pulled to a low voltage level by default.
When any card is inserted to or removed from the socket, uSDHC detects the logic value changes on the DATA3 pin and generates an interrupt. When the DATA3 pin is not used for card detection (for example, it is implemented in GPIO), the CD_B pin must be connected for card detection. Whether DATA3 is configured for card detection or not, the CD_B pin is always a reference for card detection. Whether the DATA3 pin or the CD_B pin is used to detect card insertion, uSDHC sends an interrupt (if enabled) to inform the Host system that a card is inserted."

Please refer to 10.3 Ultra Secured Digital Host Controller (uSDHC) in RM for more details

Regards,

Ankit Patel

0 项奖励
回复