Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > how to give correct path to included headers in uvision

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



how to give correct path to included headers in uvision
Moderator:
RSKV

Post Reply
Follow this topic



how to give correct path to included headers in uvision

ragers posted on 13 Aug 2011 2:23 AM PST
Top Contributor
25 Forum Posts

hi.

when i copy fw project from c:\cypress\usb\target\fw\lp (all files in the folder) to an other location for example: ~my documents\keil_prg\lp and open the project with uvision3 it does not know the path for EZUSB.LIB and USBJmpTb.OBJ it looks in ~my documents\keil_prg\lib\lp for it .

also in another project when I write :

#include "fx2.h"

#include "fx2regs.h"

#include "syncdly.h"

after build this error occures : can't find file 'syncdly.h'

I checked for the file it was in the same folder as fx2.h and fx2regs.h in "c:\cypress\usb\target\Inc"

also unchecked  Project -> 'Options for Target' -> the 'A51' tab -> and uncheck 'Define 8051 SFR Names'. according to :

http://www.keil.com/support/docs/1859.htm

could you please help me?

 

 




Re: how to give correct path to included headers in uvision

aasi posted on 14 Aug 2011 03:57 AM PST
Cypress Employee
1090 Forum Posts

1. It most probably takes the absolute location of the files. So try deleting from the project and re-adding EZUSB.lib and USBJmpTb.Obj

2. If they're in the same folder they should get added. Your project is most probably taking it from some other place. Double and open the files, the title window of keil IDE will show you the location of the file. Use that to figure out what is wrong.

Regards,

Anand



Re: how to give correct path to included headers in uvision

ragers posted on 15 Aug 2011 10:53 PM PST
Top Contributor
25 Forum Posts

dear aasi

thanks for replay

about the first question removing and adding again solve this problem it seems like the path is something like ..\lib\lp so this problem occures when i copy the entire project (like fw that is created while installing cypress dvk) to another location.

but about the second question the problem is that while building the file syncdly.h will not be added to the fw.c dependencies and i donot know which location does it search for the file. this problem occures when I create a project from begining. and is not solved.

please help me

the project is attached

 

 



Re: how to give correct path to included headers in uvision

aasi posted on 15 Aug 2011 11:40 PM PST
Cypress Employee
1090 Forum Posts

 What i meant is,

When you say fx2.h and fx2regs.h are getting added and syncdly.h is in the same folder then it should take this file. If that doesn't happen it means it is taking fx2.h and fx2regs.h from some other location. Double-click it to find that location and add syncdly.h to that else

Goto File Extensions, Books, Environment in Project menu and select the Environment Setup tab. You can add the correct include path through the INC field.

Regards

Anand



Re: how to give correct path to included headers in uvision

ragers posted on 15 Aug 2011 03:14 AM PST
Top Contributor
25 Forum Posts

thank you

solved 






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.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20