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.

CCS/TMS570LC4357: The question about "add_device()" function

Part Number: TMS570LC4357

Tool/software: Code Composer Studio

hello 

I am implement a file system.

now I have success to implement the "FLASH_open()", "FLASH_close()", "FLASH_write()" and so on.

call the function "add_device("flash_disk", _SSA, FLASH_open, FLASH_close, FLASH_read, FLASH_write, FLASH_lseek, FLASH_unlink, FLASH_rename)"

when I call the fopen(), it can execute the FLASH_open();

when I call the fread() and fwrite() function , it can't execute the FLASH_read() and FLASH_write(); but when call it again, it will execute the "FLASH_read" and "FLASH_write" two times.

can you give me some advice?