Troubleshoot of emFile Example ! help

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi all,

   

I am using Psoc5, I need to write on SD card. I used emFile example. Fot this I added

   

emFile_V322c\Code\Include\PSoC5 and

   

emFile_V322c\Code\Include\PSoC5\emf16nOS to

   

build settings>Compiler>General>Additional Include Directories.

   

After I added, ..\emFile_V322c\LinkLibrary\PSoC5\GCC

   

to build settings>Linker>General>Additional Library Directories also,

   

I write emf16nosnlfn to build settings>Linker>General>Additional Library

   

However it don't work without any error.
When I debug this, it goes always "else" part in this example.

I am using 2gb microsd card.

Can you see any missing part ?

Regards, Burak

0 Likes
13 Replies
Anonymous
Not applicable

Also I tried emf32nOS and emf32nosnlfn with 2 gb sd card and 8gb sd card. But nothing changed.

0 Likes
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

I did as it is written in в emFile_v1_0.pdf   (стр 5-9)

   

In my version emFile_V322b folder located in the same folder directory emFile_Example02
no mistakes. The project is attached below.

   

 

   

ps  4Gb -  maximum((

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

I really don't have any idea. I am using same settings with you, however it is not work. Now I am trying with 2 gb kingston sd card with this sd sniffer.

   

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

perhaps we are talking about two different issues:
- You can not create a project without errors?
or
- The project has no errors but does not work with an SD card?

0 Likes
Anonymous
Not applicable

Maybe there would be problem in emFile_V322C. I can try with V322B file. Can you send me ?

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

I tested the project on 2 computers (XPx32 and Win7x32).
I changed emFile_V322b and emFile_V322c - no problem.
you get a message - Build Succeeded:?
if not - What error  message?
Try to shorten the path to the folder: C: \ YouProgect

   

emFile_V322b found here:  
https://github.com/soynerdito/GeoCar_PSoC/tree/master/emFile_V322b
 

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

I don't have any error. Build succeeded. I also tried with C: path. I also test sd sniffer with arduino and stm32 card. But still it don't work on psoc 5. I am sure everythings I did are correct but not working !!!

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

You did not say that you are using.
If this CY8CKIT-059 PSoC 5LP
then you need to remove the capacitor C12 (C7, C9, C13 ... port P0)

0 Likes
Anonymous
Not applicable

I really don't have any idea about "remove the capacitor" and how can I do. Also I want to thanks to you to interest this post. 
Can you explain more about how can I remove these four capacitor ? 

0 Likes
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

CY8CKIT-059 PSoC 5LP used to quick start.
Therefore, it has certain features in the design. see CY8CKIT-059_Schematics.pdf
In particular, the capacitor C12 need for SAR1 EXTREF in one of examples of this board.
In your project it will prevent the pin MISO (P0.2)
You can safely delete a soldering iron.
It is located near the contact 15.5
Another option - to change the port on P3 seems he does not have these problems (should check)

   

PS  I always remove the following items:     C7, C9, C12, C13 (C4?)

0 Likes
Anonymous
Not applicable

Thank you for your help. Lastly It work to change pins to P3.3 .. P3.6. I really wonder that how can you learn these things. Are you reading documents for that ? However I couldn't find any information about that. 

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

When you installed the files for your CY8CKIT-059 (you hopefully did!) you will find under Programs(x86)\Cypress\ documentation for your hardware including schematics. Worth reading...

   

 

   

Bob

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

Bypass capacitors are present on all boards.
You will have to read the documentation)))
Here are a few that I was able to briefly see:
CY8CKIT-042:       P1.7(C10)   P4.2 (C1)   P4.3 (C9)
CY8CKIT-049-42xx:  P1.7( C3)   P4.2 (C2)   P4.3 (C11) 
CY8CKIT-050:       P0.2(J43)   P0.4 (J44)
In addition, there are buttons and LEDs)))
This is useful in the initial stage, but then it is forgotten.
So I prefer to remove Bypass capacitors at once.
I'm glad I could help you.

0 Likes