You are here

emFile Example problem | Cypress Semiconductor

emFile Example problem

Summary: 4 Replies, Latest post by Pablo Luis Chumacero Timana on 15 Nov 2016 03:16 PM PST
Verified Answers: 1
Last post
Log in to post new comments.

Hi,

I have a CY8CKIT-059 PSoC 5LP Prototyping kit and i want save some data in a SD card. So, I tried make a example project but this don't compiled. The error message is: Build error: cannot find -l..\..\..\pzoc\emFile_V322c\LinkLibrary\PSoC5\GCC\emf32nosnlfn. But, i don't understand why if the file emf32nosnlfn is in the folder.  I have created an emFile Project for a PSoC 5LP Application using GCC toolchain
When using the GCC toolchain, you must specify the directory where the library file is located. I have followed the steps to create the emFile project for PSoC 5LP application using GCC toolchain.

 

user_1377889's picture
User
9606 posts

Welcome in the forum.

You made a simple error when specifying the additional libraries for the linker. Check the picture in figure 7 of  emFile datasheet "Getting started" There is a simple filename needed without the "lib", without the ".a" and without a path.

 

Bob

Thanks for the welcome Bob.

You were right, I changed the file name and the program loaded correctly. It was a simple mistake, sorry I'm new. Thank you.

user_1377889's picture
User
9606 posts

You are always welcome, nothing to excuse for.

 

Bob

I have another question, I am trying to save some data from RTD sensors on the SD card, I have used as a base the previous example. But, the program only saves once data in the text file, then I get error writing to the file. I use an interrupt and a timer every time I want to save data in the file. I do not know if I have to use another file format or if I have to use a pointer shift function. Or you may have to use a counter as "for".

This is my code.

 

Attachments: 
Log in to post new comments.