Other Parts Discussed in Thread: AM6442, SK-AM64B, TMDS64EVM
Hi
I am developing AM6442(SK-AM64B boad) R5F core with FreeRTOS API in SDK.
In mmcsd_file_io_am64x-sk_r5fss0-0_nortos_ti-arm-clang, if set over 9 letters for filename, filename was broken.
I am testing in this setting,
//in FreeRTOSFATConfig.h #define ffconfigBYTE_ORDER (pdFREERTOS_LITTLE_ENDIAN) #define ffconfigHAS_CWD (0U) /* Use only absolute paths */ #define ffconfigCWD_THREAD_LOCAL_INDEX (4U) #define ffconfigLFN_SUPPORT (1U) #define ffconfigINCLUDE_SHORT_NAME (1U) #define ffconfigSHORTNAME_CASE (0U) #define ffconfigUNICODE_UTF8_SUPPORT (1U) #define ffconfigFAT12_SUPPORT (0U) #define ffconfigOPTIMISE_UNALIGNED_ACCESS (1U) #define ffconfigCACHE_WRITE_THROUGH (0U) #define ffconfigWRITE_BOTH_FATS (1U) #define ffconfigWRITE_FREE_COUNT (1U) #define ffconfigTIME_SUPPORT (1U) #define ffconfigREMOVABLE_MEDIA (1U) /* Assume media is always removable */ #define ffconfigMOUNT_FIND_FREE (1U) #define ffconfigFSINFO_TRUSTED (1U) #define ffconfigPATH_CACHE (0U) #define ffconfigPATH_CACHE_DEPTH (0U) /* Only used if ffconfigPATH_CACHE is 1 */ #define ffconfigHASH_CACHE (0U) #define ffconfigHASH_FUNCTION (0U) /* Only used if ffconfigHASH_CACHE is 1 */ #define ffconfig64_NUM_SUPPORT (1U) #define ffconfigDRIVER_BUSY_SLEEP_MS (40) #define ffconfigMALLOC( size ) malloc( size ) #define ffconfigFREE( ptr ) free( ptr )
//in FreeRTOSFATConfigDeafaults.h #define ffconfigMAX_FILENAME 129 #define ffconfigFAT_CHECK 0
// in main code (in sample i added this)
char filename2[] = "/sd0/filename2_nametest.txt";
char data2[] = "test2 file create sucsess!!!";
/* Create file */
fp = ff_fopen(filename2, "w+");
/* Write file data */
ff_fwrite(data2, strlen(data2)+1, 1, fp);
// ff_fwrite(data2, strlen(data2)+1, 1, fp);
/* Close file */
ff_fclose(fp);
Result,Filename is broken.

I think this setting supports over 8.3 filename, but not.
I'm glad if you let me anything information.
Thanks,
GR




