Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Start a project in Eclipse

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Start a project in Eclipse
Moderator:
RSKV

Post Reply
Follow this topic



Start a project in Eclipse

Nazila posted on 13 Oct 2011 11:26 AM PST
Top Contributor
55 Forum Posts

Hi,

What are the steps to start a new firmware in Eclipse from scratch? Do I need to install sourcery G++ in order to build my firmware codes on the Eclipse?

Thanks,

Nazila




Re: Start a project in Eclipse

aasi posted on 14 Oct 2011 12:07 AM PST
Cypress Employee
1073 Forum Posts

Please look at chapter 9 of FX3 programmers Manual.

Regards,

Anand



Re: Start a project in Eclipse

Nazila posted on 14 Oct 2011 09:47 AM PST
Top Contributor
55 Forum Posts

Hi,

I already looked at it but it only explain how to import the already written projects. My problem now with the new project is the <cyu3... .h> files are not recognized by the compiler! Even though I already added the FX3 SDK library (FX3 SDK/firmware/u3p_firmware/inc).

Thanks,

Nazila



Re: Start a project in Eclipse

Nazila posted on 14 Oct 2011 10:07 AM PST
Top Contributor
55 Forum Posts

I think I found what the problem was! I added the path to the Cypress library files to the project's "includes" but not to the file's "includes" which is very weird, I expect that when I add the path to the project, automatically the files inside that project see the path!

Anyway, now the project can compile.



Re: Start a project in Eclipse

Nazila posted on 14 Oct 2011 11:38 AM PST
Top Contributor
55 Forum Posts

I started a new project and only add new files from the already compiled folder of cypress: BulkLoopAuto. I encounter the same problem: cyfxbulklpauto.c does not recognize the cyfxbulklpauto.h and even after I add explicitly the path of the own project (where both of these files exist), the project compiles but there is no elf file generated.



Re: Start a project in Eclipse

Nazila posted on 14 Oct 2011 02:03 PM PST
Top Contributor
55 Forum Posts

Another error that I get is

Cannot find builtin/gnu.mk

Has anyone create a project (NOT importing already built projects from the firmware folder). I think I am missing some settings, ...

Anyone can help?



Re: Start a project in Eclipse

sodafarl posted on 15 Oct 2011 12:18 PM PST
Top Contributor
128 Forum Posts

Hi,

I have used an existing project, USBBulkLoopAuto as a template for a new project. I've outlined the steps below

Go to the firmware/basic_examples folder and make a new folder with your project name, for example my_proj.

Open the cyfxbulklpauto folder and copy all the files into the my_proj folder - do not copy the debug folder if there is one.

You will then need to rename three source files. Rename cyfxbulklpauto.c to my_proj.c,  cyfxbulklpauto.h to my_proj.h and cyfxbulklpdscr.c to my_projdscr.c

With a text editor open my_proj.c and change the include reference #include <cyfxbulklpauto.h> to #include <my_proj.h> Repeat this with my_projdscr.c file.

Open the file called .project and replace the project description name from USBBulkLoopAuto to my_proj.  Also search and replace BulkLoopAuto with my_proj.

Open the .cproject file and using search and replace, replace BulkLoopAuto with my_proj

Open Eclipse and import this project as described in the FX3 Programming manual. Once imported you can then edit the source code and add files to suit your requirements.

Hope this helps.

Sodafarl
 



Re: Start a project in Eclipse

Nazila posted on 17 Oct 2011 02:30 PM PST
Top Contributor
55 Forum Posts

Thanks, It is working now!






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.