I am doing a project(a simple datalogger) using pic 18f4620 and SD cards (2GB). I am using MikroC compiler.
My problem is that the mmc_fat_assign() function hangs(It returns nothing) once the total used space on the SD card becomes128kb. ie I cannot create more files once 128 kb has been used up (however I can use the function on existing files for reading them). I am able to create more files, once the existing files are deleted.

Please help me to solve this.

I am using mikroc pro for pic v5.40.

Click image for larger version. 

Name:	Capture.PNG 
Views:	9 
Size:	34.0 KB 
ID:	70541