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.

RTOS/TDA2PXEVM: Creating folder and copying the files into the SD card using network Ctrl

Part Number: TDA2PXEVM
Other Parts Discussed in Thread: TDA2

Tool/software: TI-RTOS

hello, 

I need to create a folder in the SD card and copy the files into the folder.

I am able to create the folder but not able to copy the files into it.

And also if the folder is already present,it gives assertion fail.

Assertion @ Line: 195 in /source/vision/platform/ti/tda2/apps/src/rtos/modules/network_ctrl/network_ctrl_handle_mmc_wr.c: 0 == status : failed !!!

1. how to create a folder into the sd card?

2. how to change the directory to copy the files into the folder created?

Below is my code:

status = File_getcwd(cwd, (Int32)1000);
if(0 == status)
{
char godfolder[NETWORK_CTRL_CMD_STRLEN_MAX]={'G','O','D'}; // new folder :GOD
strcat(cwd, "/GOD");

System_linkControl(
linkId,
SYSTEM_LINK_CMD_MAKE_DIR,
godfolder, strlen(godfolder)+1,
TRUE);
status = File_chDir(cwd);
}