Tool/software: TI-RTOS
Dear TI-Support
I had trouble using QSPI together with MMCSD in the bootloader on an idkAM571x development Board. The issue was that an assertion was thrown in the QSPI driver during a SPI_osalPendLock(object->mutex, SemaphoreP_WAIT_FOREVER); call in the QSPI_v1.c file. The assertion was thrown because the object-mutex was NULL. After some debugging i found out that the mutex could not be created because in the SemaphoreP_create() method all OSAL_NONOS_CONFIGNUM_SEMAPHORE where allready taken by other drivers (i2c, Uart and MMCSD). After increasing OSAL_NONOS_CONFIGNUM_SEMAPHORE everything worked.
After some more debugging i found out that the MMCSD_close() never get called. FATFS_close() is called but lacks the call to MMCSD_close() i think this is a bug in the pdk. I checked the sources for pdk version 1_0_10 and there is still no close call in the FATFS driver. Can you confirm this behavioral or is there any other method which has to be called during cleaning up of the FATFS System?
Thanks.
Kind regards
Marco