Hello, everyone.
I`m Myungjin Lee.
I want to write data into SD card file system.
My environment :
Vision SDK 2.10(windows 10, ccs6)
Please refer below.
1. My chain`s structure.
UseCase: chains_SvStoreVideo_test
Capture -> Dup -> Display_Video
Dup -> Encode -> Null (A15)
GrpxSrc -> Display_Grpx
I want to write file using NULL link.
2. setting Null link parameter
unsigned char filename[] = "test_video.avi";
pPrm->dumpDataType = NULL_LINK_COPY_TYPE_BITSTREAM_FILE;
memcpy(pPrm->nameDataFile, filename, sizeof(filename));
I set dumpdatatype, but I saw that "NULL_LINK_COPY_TYPE_BITSTREAM_FILE" mode isn`t implemented.
3. implementation "NULL_LINK_COPY_TYPE_BITSTREAM_FILE" mode
I included "#include <src/utils_common/include/file_api.h>" in "nullLink_priv.h"
And then, In "nullLink_tsk.c"
I inserted sample code in function "Int32 NullLink_drvCreateDumpFramesObj(NullLink_Obj * pObj)"
else if(pObj->createArgs.dumpDataType == NULL_LINK_COPY_TYPE_BITSTREAM_MEMORY) } |
At function "Int32 NullLink_drvDumpFrames(NullLink_Obj * pObj, UInt32 inQue, const System_Buffer *pBuf)"
else if(pObj->createArgs.dumpDataType == NULL_LINK_COPY_TYPE_BITSTREAM_FILE) File_write(fd, temp_buf, 4); |
At function "Int32 NullLink_drvDeleteDumpFramesObj(NullLink_Obj * pObj)"
else if(pObj->createArgs.dumpDataType == NULL_LINK_COPY_TYPE_BITSTREAM_FILE) |
4. In Rulse.make
I changed "FATFS_PROC_TO_USE"`s parameter to a15_0.
ifeq ($(FATFS_PROC_TO_USE), )
#FATFS_PROC_TO_USE=ipu1_0
FATFS_PROC_TO_USE=a15_0
endif
5. build
I built Vision SDK.
gmake clean -> gmake depend -> gmake
G:/work/TI/project/TI_VisionSDK/vision_sdk/binaries/lib/tda2xx-evm/a15/release/fat_lib.aa15fg(hsmmcsd_API.oa15fg): In function `HSMMCSDStatusGet': |
I fiind out these error function`s implementation in "ti_components\drivers\starterware_01_06_00_16\drivers\hs_mmcsd.c"
And I also find out object file in "vision_sdk\binaries\obj\starterware_hal\tda2xx-evm\a15\release" that named "hs_mmcsd.oa15fg"
I think that there is some problem at link operation.
How could I this problem?
And writing file in SD card is possible?
Thank you.