Hi champs,
My customer is testing sd_fat32 example project, uses SPI-B and keep writing 3.2KB data into the 16GB SD Card. However, he finds that sometimes it takes longer time to execute f_write() and f_sync() functions, please refer to below scopeshot.

Below is the virtual code of my customer's software, he uses GPIOs to indicate the functions executing time.
GPIO1 = 1; // this is the C1 waveform
f_open(....);
GPIO1 = 0;
GPIO2 = 1; // this is the C2 waveform
f_write(....);
f_sync(....);
GPIO2 = 0;
f_close(.....);
From the C2 waveform(BLUE color), we can see sometimes DSP takes longer time to complete f_write() and f_sync() functions. My customer is wondering what causes this time delay problem, is it due to the memory structure of SD card or something?
Please advise your comments, thanks for help.
Regards,
Luke