@Alice_Yang thanks for your support
After modify demo code lpcxpresso55s16_host_msd_fatfs_bm macro definition in usb_host_config.h and jumpers to USB1 It detects the mass storage device
kindly help me to write and read in mass storage device(PEN DRIVE)
in debug session
(
host init done
mass storage device attached:pid=0x558avid=0x781 address=1
............................fatfs test.....................
fatfs mount as logiacal driver 1......success
test f_mkfs......success
test f_getfree:
FAT type = FAT32
bytes per cluster = 32768; number of clusters=938764
The free size: 30040416KB, the total size:30040448KB
directory operation:
list root directory:
create directory "dir_1"......success
create directory "dir_2"......success
create sub directory "dir_2/sub_1"......success
list root directory:
dir - ___ - DIR_1 - 0Bytes - 2018-1-1 0:0:0
dir - ___ - DIR_2 - 0Bytes - 2018-1-1 0:0:0
list directory "dir_1":
dir - ___ - SUB_1 - 0Bytes - 2018-1-1 0:0:0
rename directory "dir_1/sub_1" to "dir_1/sub_2"......success
delete directory "dir_1/sub_2"......success
get directory "dir_1" information:
dir - ___ - DIR_1 - 0Bytes - 2018-1-1 0:0:0
change "dir_1" timestamp to 2015.10.1, 12:30:0......success
get directory "dir_1" information:
dir - ___ - DIR_1 - 0Bytes - 2015-10-1 12:30:0
file operation:
create file "f_1.dat"......success
test f_write......success
test f_printf......success
test f_puts......success
test f_putc......success
test f_seek......success
test f_gets......ABCDEFGHI
test f_read......JKLMNOPQRS
test f_truncate......success
test f_close......success
get file "f_1.dat" information:
fil - ___ - F_1.DAT - 19Bytes - 2018-1-1 0:0:0
change "f_1.dat" timestamp to 2015.10.1, 12:30:0......success
change "f_1.dat" to readonly......success
get file "f_1.dat" information:
fil - R__ - F_1.DAT - 19Bytes - 2015-10-1 12:30:0
remove "f_1.dat" readonly attribute......success
get file "f_1.dat" information:
fil - ___ - F_1.DAT - 19Bytes - 2015-10-1 12:30:0
rename "f_1.dat" to "f_2.dat"......success
delete "f_2.dat"......success
............................test done......................
)