Skip to main content
Associate II
August 16, 2026
Question

Usage of pin PN12

  • August 16, 2026
  • 3 replies
  • 57 views

Hello Team,

 

  1. On the Development Board, pin PN12 is used to detect whether an SD card is inserted or not; however, it is also required by xspm_p2_ncs, so I don’t think we can simultaneously use XSPIM1, XSPIM2, and PN12. Is there any other pin you would recommend for the purpose of detecting an SD card? Also, I am using the mechanical switch to detect the SD card.

 

  1. In the Datasheet, SDMMC1 is specified for the SD card

 

  1. However, in the AN5967 Document, SDMMC2 is preferred for the SD card.

 

Which port, SDMMC1 OR SDMMC2, is preferred for a microSD card?

 

Thanking you 

3 replies

AScha.3
Super User
August 16, 2026

Hi,

Which board/ CPU you are talking about?

If you feel a post has answered your question, please click on " Best Answer ".
El_ChezAuthor
Associate II
August 17, 2026

STM32N657X0H3Q

Visitor
August 16, 2026

Hello,

Regarding the SD card interface, I have a couple of questions and would appreciate some guidance.

  1. On the development board, PN12 is used to detect whether an SD card is inserted. However, PN12 is also required by xspm_p2_ncs. Because of this conflict, it seems we may not be able to use XSPIM1, XSPIM2, and PN12 simultaneously. Is there another recommended GPIO pin that could be used for SD card insertion detection? We are using the mechanical card-detect switch for this purpose.
  2. The datasheet specifies SDMMC1 for the SD card interface.
  3. However, AN5967 appears to recommend SDMMC2 for the SD card.

Could you please clarify which interface, SDMMC1 or SDMMC2, is recommended/preferred for a microSD card in this configuration?

Also, if SDMMC2 is preferred, are there any specific pin-muxing or configuration considerations we should be aware of when using it?

Thank you for your guidance.