You are here

emFile issues with PSoC5LP | Cypress Semiconductor

emFile issues with PSoC5LP

Summary: 2 Replies, Latest post by shaboinkin_1666166 on 22 Sep 2016 03:47 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
shaboinkin_1666166's picture
2 posts

I followed the instructions for downloading the headers and library files for the emFile module and everything builds and links fine. But before I get into my problem with not being able to write to the SD Card, it appears that even if I don't have my SD Card wired up to my psoc, FS_GetVolumeName() always returns a name of "mmc:0:" and FS_GetNumVolumes() always returns 1. What would cause this? 

HIMA's picture
Cypress Employee
172 posts


The default volume name is mmc:0:. So even if there is no card connected it will show value 0.Can you use the code snippet given below.

if(0 == (status_t = FS_GetVolumeInfo("mmc:0:0", pInfo)))//default volume name is mmc:0:0
            /* Getting volume name succeeded so prompt it on the LCD */
            LCD_PrintString("SD card name:");
            LCD_Position(1, 0);

Can you check if this code snippet is working as expected if SD Card is not connected?



shaboinkin_1666166's picture
2 posts

Oh cool. That worked. I wonder if I just goofed up my wiring. After I made this post when tried this other sdcard library for the psoc4 and ran into some issues with that due to the wiring. 


Log in to post new comments.