cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ 5, 3 & 1

GeJo_4320246
New Contributor II

Hi everyone,

As I said in the title, I just can't figure out what's wrong with emFile. This is for my master thesis and I don't have a lot of time left...

Here what I use in this project :

  • 'PSoC 5LP CY8C5888LT*-LP097' Prototyping kit
  • 2Go Micro SD transcend card
  • microSD click from Mikroe
  • SD Card Formatter and/or Formatter from Windows 10
  • UART (named UARTGPS because of my project) communication with Termite 3.4  instead of LCD in the example.
  • Default configuration for emFile in TopDesign

I followed every step for the installation (in build settings, etc).

The example provided just does won't build : "Build error: MMC_X_HW.h: No such file or directory" is the error message and I can't figure out why.

I also tried on my own workspace for my master thesis (it is supposed to be coupled with GPS and UMTS modules but I tried to hide that part in the attachment since it is not related to the problem. In my workspace I don't have any error displayed during the build but it just seems that it can't see my micro SD card. I changed the SD Card to "UMTS" and still, it displays "mmc:0" as name then fails for each action in the example.

I  tried (on my code, not the example)  the pins P2[3:6] which I believe is not linked to any problematic hardware like bypass capacitors. Then tried with pins 12.2 12.3 12.4 12.0, same result.

What I don't understand is why it doesn't find "MMC_X_HW.h" in the example but does in the my project.

As you can understand I am very confused and struggling because of that problem and I really need help (which I don't do that much, this is my first time posting on a forum but I am desperate right now).

Thank you in advance for all the help you can provide !

Sincerely yours.

0 Likes
1 Solution
MotooTanaka
Esteemed Contributor

Hi

I’ll try your file later, but for the time being would you

(1) check if the path name contains space or non standard ascii letters

such as Chinese letter, Japanese letter, German specific letter etc.

(2) path length is not too long

moto

View solution in original post

0 Likes
10 Replies
GeJo_4320246
New Contributor II

EDIT : I also tried with FAT16 and 32 (and of course I changed the config in build settings every time)

0 Likes
MotooTanaka
Esteemed Contributor

Hi,

Have you taken a look at the datasheet of emFile?

002-emFile-Dialog.JPG

The datasheet can be accessed from the Configure Dialog of "emFile"

It seems that in the "Getting Started" section of the datasheet,

there is a description about how to get emFile Library.

003-GettingStarted.JPG

moto

0 Likes
GeJo_4320246
New Contributor II

Hi,

Yes I followed every step of this installation, that's the first thing that I did but then I got the problems that I have specified above. The settings are good I verified that I did not do a mistake with the name of the library in the build settings but everything is like in the datasheet and it does not work I don't know why

0 Likes
MotooTanaka
Esteemed Contributor

Hi,

> Yes I followed every step of this installation..

Oh, OK, I'm sorry for my short sight.

But at least I could not find MMC_MCI_HW.h in your attached project.

Note: I could not open the rar file.

Anyway, assuming that you have installed the library, there must be those files from emFile_V3222c, right?

Then I think that you need to add include path and link library path to you build settings.

In the Build Settings > ARM GCC .. > Compiler > General

Select Additional Include Directories

004-BuildSettings-Compiler-general.JPG

Add a couple of paths, where you put the library and in the library the type you chose

005-Additional-Directories.JPG

Then in the Linker > General Tab

select Additional Library Directories

006-Link_Library_GCC.JPG

Then I added additional Libraries according to the type chosen

Note: The name of Additional Libraries, we must remove "lib" in the beginning of the library name

and ".a" at the end of the library name.

So "libemf16noslfn.a" will end up "emf16nosfln"

006-AdditionalLibrary.JPG

With these modifications, I could compile the project

007-compiled.JPG

moto

0 Likes
GeJo_4320246
New Contributor II

Hi,

Sadly I did these too and it does not work, here I send you the screenshots and the rar file but in zip now, I hope it will work.

I really don't understand why it does work on your example but not mine.  The emFile are in my PSoC Creator directory (apparently named pzoc in the settings

0 Likes
MotooTanaka
Esteemed Contributor

Hi

I’ll try your file later, but for the time being would you

(1) check if the path name contains space or non standard ascii letters

such as Chinese letter, Japanese letter, German specific letter etc.

(2) path length is not too long

moto

View solution in original post

0 Likes
MotooTanaka
Esteemed Contributor

Hi,

I download your zip file and I placed the emFile_V322c folder next to the Memoire_question

003-Filelocation.JPG

Then your project could be built without any modification(s)

002-GPS-compiled.JPG

So I think that the config settings are fine.

May be you need to "clear" then "build" your project.

Otherwise, I would suspect path name problem or path name(s) are too long.

moto

0 Likes
GeJo_4320246
New Contributor II

Hi,

I followed your advice and change the path and put it directly at the base of my C:/ directory. It compiled without error. 

But the code still does not work, now it still see the SD card as "mmc:0" (I changed the name to "UMTS" to be sure that it was visible).

And of course fails each step of the example.

So I guess it does not see my sd card and I can't figure out why.

I tried to measure the voltage on the pins (with voltmeter in DC mode, I don't have an oscilloscope), and apart the CS pin that is almost to 5v (should be 3.3V I don't understand why the psoc put it to 5v) the others pins are 20-30mV. I am not familiar with SPI, so I couldn't say if it's normal or not.

0 Likes
MotooTanaka
Esteemed Contributor

Hi,

I'm glad that at least you could compile the project.

Now you are asking something else and the question may not be a simple one.

I would suggest and/or ask you to create a new discussion

with a title which reflects your current problem

so that more people can find the topic and help you.

(I may also be going to try it tomorrow, but not now)

moto

GeJo_4320246
New Contributor II

Thanks, I will open a new topic and put the link to it here once (I hope it will) it is working.