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;
}
...
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.
Hi @kbsidi,
Could you please share the Part Number that you are using, as well as the SDK and IDE versions?
BR,
Edwin.
Thank you for your reply.
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.
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.