What do you mean by not working. What should happen according to you code? I see there is a txt file inside the image file (.mmc file created using WinImage). The text inside the file is "This is File 1"
Do you want to write data received through UART to text file in the image file?
I have done SD card project using mikroC Compilers and it works fine in hardware and also Proteus. In Proteus you should not use the pullup resistors on the SPI lines with SD card.
To open .mmc file you have to rename it to .ima file and open it in WinImage.
New folder.rar [20.2 KiB]
Downloaded 522 times
sdcard.png [ 40.4 KiB | Viewed 3541 times ]
[HW:] EasyPIC v7, mikroProg PIC, AVR, STM32, PSoC, Tiva, 8051
[SW:] mikroC PRO PIC, dsPIC, PIC32, AVR, ARM, 8051
mikroBasic PRO PIC, dsPIC, PIC32, AVR, ARM, 8051
mikroPascal PRO PIC, dsPIC, PIC32, AVR, ARM, 8051
Visual GLCD, Visual TFT