I have one USB drive that fails to be properly mounted. I'm using the MFS USB MSD project in MQX 4.1. When the drive is interfaced it fails on validating the MBR.
error_code = get_valid_partitions(msd_dev_data->PM_FD_PTR, &valid_parts);
The next step attempts to assign a drive letter to the whole device and that fails when reading back some information from the boot sector.
error_code = MFS_Read_device_sector(drive_ptr, BOOT_SECTOR, drive_ptr->DIR_SECTOR_PTR);
The drive mounts fine in windows and from what I can tell the MBR is good too. Anything I can do to fix this?