Getting TXUNDERR while writing data to eMMC
Hello
-> We are using a custom board with STM32H745 controller and 8GB eMMC communicated with sdmmc.
-> getting SDMMC_FLAG_TXUNDERR bit after writing 64 bytes to eMMC. But i am giving 1k buffer array to write.
-> eMMC initialization, reading logic blocks and erase command all are working and getting HAL_OK status.
-> We tried SDMMC clock with 500KHz to 45 MHz.
-> We are generated code from CubeMX(latest version) and running in CubeIDE (latest version)
/******************************************************************************************/
for(int i=0;i<1024;i++) {
eMMCWriteBuf[i] = 0x53;
}
StatusTx = HAL_MMC_Erase(&hmmc2,0x00,0x2000); / / erase 16 blocks
HAL_Delay (1000);
HAL_Delay (1000);
HAL_Delay (1000);
StatusTx = HAL_MMC_WriteBlocks(&hmmc2, eMMCWriteBuf, 12, 2, 0xFFFF);
HAL_Delay (1000);
HAL_Delay (1000);
while(1)
{
StatusRx = HAL_MMC_ReadBlocks(&hmmc2, eMMCReadBuf, 12, 2, 0xFFFF);
HAL_Delay (1000);
HAL_Delay (1000);
}
/**********************************************************************************************/
can anyone help mw in this regards , it urgent.
thank you in advance
regards
srikanth
