This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA3LA: SD Card Write FAILED!

Part Number: TDA3LA

I opened and asked this question in the past where it wasn't resolved and that case was now locked. I am reaching out again here as this is a must have feature for us now. From the previous thread, the problem was the function that handle file IO fileIOCmdHandler(UInt32 cmd, Void *pPrm) in network_ctrl_handle_mmc_wr.c

I have added Vps_printf in both SYSTEM_LINK_CMD_OPEN_FILE and SYSTEM_LINK_CMD_WRITE_FILE. The problems:

1. in  SYSTEM_LINK_CMD_OPEN_FILE, fileIOPrms->fileName, fileIOPrms->fileMode are corrupted. The fileName should have been AppImage while fileMode: "wb"

2. In SYSTEM_LINK_CMD_WRITE_FILE, both fileIOPrms->dataAddr, fileIOPrms->dataSize are 0 

Please help look into why this is the case. This function can be tested on your own TDA3 setup.

Thanks,

--Khai

  • Hi,

    How are you calling this fileIO cmd handler.

    Please make sure you are passing the params properly.

    Regards,

    Anuj

  • Fixed. There is a BUG in the NetworkCtrl_cmdHandlerMmcsdWrite_proxy() that when allocated buffer memory, I have to use UTILS_HEAPID_DDR_CACHED_LOCAL instead of UTILS_HEAPID_DDR_NON_CACHED_SR0 which was in the released code from TI in Vision SDK.

    Your team might want to retest this feature and make sure it works. Allocating memory section from UTILS_HEAPID_DDR_NON_CACHED_SR0 didn't work for me thus failed in fileIOCmdHandler().

    Regards,

    --Khai