AnsweredAssumed Answered

The problem of simultaneous access to the data SD-card with a PC and a MCU with FATFs.

Question asked by alexander.taran on Jun 12, 2015
Latest reply on Jun 13, 2015 by alexander.taran
For access to the data SD-card from side the MCU is used a FATFs technology. From the PC side is used USB mass storage device (MSD) with direct access to data from SD-card without FAT system on the MCU. To guarantee only one access to methods SD card is used following code:

if(SD_state == MSD_OK)
/* Write block(s) in DMA transfer mode */
if(HAL_SD_WriteBlocks_DMA(&hsd, pData, WriteAddr, BlockSize, NumOfBlocks) != SD_OK) 
SD_state = MSD_ERROR;
SD_state = MSD_OK;

When MCU is create or modify files on SD-card, data in the browser from the PC side don't updated. It's refresh is only when plug of USB cable is remove and insert. How can i update data on the browser without remove and insert of a USB cable?