Tool/software: Code Composer Studio
Hello, I have question about FATFS in F28377D.
I want input the text file to USB memory card.
I connected USB module. (5V to VBUS, V- to 130pin& V+ 131pin(standard PTP pin no.), GND to GND)
and code use 'usb_host_msc', but it is set by UART command.
I want input the text file immediately, So I made code like this..
<<usb_host_msc.c>>
int main(void)
{
...
//
// Initialize the file system.
//
f_mount(0, &g_sFatFs);
// under the this point, I made it. I refer to other location function 'f_open() and f_write()'
//
// Open the file for reading.
//
fresult = f_open(&g_sFileObject, g_cTmpBuf, FA_WRITE);
//
// If there was some problem opening the file, then return an error.
//
if(fresult != FR_OK)
{
return(fresult);
}
... end
but, I didn't go next line. It went abort function. At that time fresult state is 'FR_NOT_READY'.
How should I modify this code? please let me know. Thank you.