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;
}
...
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.