Hello.
EK_TM4C123GXL to DK-TM4C123G migration and modify
Why can not I write "Hello :)" in the Err1.txt file?
Please let me know what to do.
regards.
static int printFileStructure (void) { uint32_t ui32ItemCount; FRESULT fresult; static char *pcBuf;//[256]="Hello World"; uint32_t ui32BytesWritten; // // Open the file by name that was determined above. If the file exists // it will be opened, and if not it will be created. // fresult = f_open(&g_sFileObject, "Err1.txt", (FA_CREATE_NEW |FA_WRITE)); if(fresult != FR_OK) { *(&pcBuf) ="Hello:)"; f_write(&g_sFileObject, &pcBuf, 20, (UINT *)&ui32BytesWritten); return(0); } *(&pcBuf)="Hello:)"; fresult = f_write(&g_sFileObject, &pcBuf, 20, (UINT *)&ui32BytesWritten); // // Open the current directory for access. // fresult = f_opendir(&g_sDirObject, g_cCwdBuf);
f_write reference location
- TivaWare_C_Series-2.1.4.178\third_party\fatfs\doc\en
create File in USB
- Attach capture