stm32f7 file operations on 8GB eMMC
Hi,
we have custom board based on stm32f7 and 8gb emmc is mounted on the board.As i see in other posts,we are also seeing CID,CSD values which results in 1gb capacity(not 8gb capacity).At the moment we don't want to execute EXTCSD and recalculate actual capacity(which is 8gb).we tried writing sample data and read the data back using HAL_MMC_Writeblocks,HAL_MMC_Readblocks.The test data of 10 bytes is written properly and able to read by HAL_MMC_Readblocks.
HAL_MMC_Writeblocks(&hmmc1,wdata,0,1,1000000) // returns HAL_OK
HAL_MMC_Readblocks(&hmmc1,rdata,0,1, 1000000) // able to see written data in rdata
a) But we want to store images in emmc with particular names.
Is it possible to do it so with write and read blocks apis alone?(with out fopen,fwrite ..etc).
b)
fwrite() is linked to HAL_MMC_Writeblocks through userdiskio.c ->emmc_writeblocks.
fopen returns FR_OK.
fwrite is invoking signal fault handler from SDMMC_WriteFIFO() function for simple 2 bytes of data.In fwrite only filepointer,writebuffer ,len,no of bytes written only supplied.is it because we are not supplying block nbr,no of blocks is chosen some random number and is resulting in signalfault ?
STM32CUBE version :1.15.0
Thanks,
P Tulasi Krishna
