installed fatfs, seems all correct, i try the routine cmd_sdiotest() , under \testhal\STM32F4xx\SDC\
all is done successfully until arrive to f_getfree(), here the number of resulting cluster is everytime 0
i have changed the parameter of routine, becouse if i use &fsp as last parameter the returning parameter err is not FR_OK.
to have FR_OK i change to &SDC_FS, and no error.
Code: Select all
err = f_getfree("/", &clusters, &SDC_FS);
what can be? communication is ok, sd card is 8mb, with only 1 partition of 680mb fat16 (tryed also with fat32)
tryed also with another sd card, same results.
tryed to pass parameter for path as "/", "0:", "1:"
one things, when i compile i get this warning:
warning: passing argument 3 of 'f_getfree' from incompatible pointer type [enabled by default]
note: expected 'struct FATFS **' but argument is of type 'struct FATFS *'
what is the correct mode to pass this argument (from static struct FATFS)?
thanks