How can I mount the SDHC2 device?

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

How can I mount the SDHC2 device?

420 Views
kbsidi
Contributor II

The following source code is a function that mounts the SDHC1 device.
How can I mount the SDHC2 device?

/* Definitions of physical drive number for each drive */
#define RAMDISK 0 /* Example: ram disk to physical drive 0 */
#define USBDISK 1 /* usb disk to physical drive 1 */
#define SDDISK 2 /* sd disk to physical drive 2 */
#define MMCDISK 3 /* mmc disk to physical drive 3 */
#define SDSPIDISK 4 /* sdspi disk to physical drive 4 */
#define NANDDISK 5 /* nand disk to physical drive 5 */

static status_t DEMO_MakeFileSystem(void)
{
    FRESULT error;
    const TCHAR driverNumberBuffer[3U] = {SDDISK + '0', ':', '/'};
    BYTE work[FF_MAX_SS];

    if (f_mount(&g_fileSystem, driverNumberBuffer, 0U))
    {
        PRINTF("Mount volume failed.\r\n");
        return kStatus_Fail;
    }

...

0 Kudos
Reply
5 Replies

300 Views
kbsidi
Contributor II

The provided link didn’t resolve the issue, and the `SDCARD_Mount` function is not visible, so I cannot reference it.
I want to know how to mount both SD1 and SD2.

0 Kudos
Reply

399 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @kbsidi,

Could you please share the Part Number that you are using, as well as the SDK and IDE versions?

BR,
Edwin.

0 Kudos
Reply

395 Views
kbsidi
Contributor II

Thank you for your reply.

 

kbsidi_0-1728524735712.png

Product: MCUXpresso IDE
Version: MCUXpresso IDE v11.10.0 [Build 3148] [2024-07-03]
Operating system: Windows 10
VM: OpenJDK 64-Bit Server VM (64 bit)

BR,

Alex.

 

0 Kudos
Reply

383 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @kbsidi,

Please look at the following community post for more information on how to use and mount uSDHC2 on our i.MX RT devices: Problem to use USDHC2 with fatfs_sdcard exemple - NXP Community.

BR,
Edwin.

0 Kudos
Reply

372 Views
kbsidi
Contributor II
The provided link didn’t resolve the issue, and the `SDCARD_Mount` function is not visible, so I cannot reference it.
I want to know how to mount both SD1 and SD2.
0 Kudos
Reply