Tool/software:
Hi all,
I am having some problems debugging SDIO with TI AM263x and MCU+SDK (10.02.00.13):
-
I send and receive commands using Poll Mode:
Response is set, but after the MMCSD_lld_cmdCompleteStatusPoll does not report an error, MMCSD_getResponse within MMCSD_lld_transferPoll does not get the correct response and a delay needs to be added manually. The logic analyzer confirms that the opposite end has replied.
The device has been set to require Response, does not reply Response to the end, However, MMCSD_lld_cmdCompleteStatusPoll did not return any errors, the code was correct, and the log did not have a related flag bit.
Code BUG:
The cmdErrorStat and xferErrorStat for MMCSDLLD_Object are of type uint16_t, but the assignment code format in the library is: Object->xferErrorStat = (intrStatus & 0xFFFF0000U);
This causes the error flag bit to always be 0. - Is there a recommendation for SDIO initialization? After the host-side initialization is complete, the SDIO device initialization has a large number of commands and register operations that require knowledge of the SDIO specification, which could result in a mismatch of the two parameters
- I need the Asynchronous Interrupt (DAT[1]) function. The Registers can locate MMC_AC2 -> AI_ENABLE. However, no example for handling this interrupt has been found. Are there any relevant materials?
Regards,
Jenney