Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > compile issue

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



compile issue
Moderator:
RSKV

Post Reply
Follow this topic



compile issue

comy posted on 12 Dec 2012 11:54 PM PST
Senior Member
17 Forum Posts

Hello!

I want to know how to use math function such as sin(). When I use sin(),my compie fail.It tells me I don't define sin(),but I have added math.h to my procedure

Thank you!




Re: compile issue

RSKV posted on 12 Dec 2012 02:12 AM PST
Cypress Employee
655 Forum Posts

Hi comy,

You also need to add libm.a in the linker path.

Add "${ARMGCC_INSTALL_PATH}\arm-none-eabi\lib\libm.a" as shown in the attached figure.

Thanks,

sai krishna.



Re: compile issue

comy posted on 13 Dec 2012 10:18 PM PST
Senior Member
17 Forum Posts

That's all right. Thank you very much



Re: compile issue

comy posted on 13 Dec 2012 12:35 AM PST
Senior Member
17 Forum Posts

Excuse please. There is still a error that arm-none-eabi-gcc: SDK\1.2\\arm-none-eabi\lib\libm.a -mcpu=arm926ej-s -mthumb-interwork -g -gdwarf-2 -oUSBBulkLoopManual.elf: No such file or directory. Thus my compile fail again

I hope you can help me. Thanks!



Re: compile issue

RSKV posted on 13 Dec 2012 01:34 AM PST
Cypress Employee
655 Forum Posts

Comy,

Could you please check whether you have libm.a in the path SDK\1.2\\arm-none-eabi\lib\

If you don't have please place the attached libm.a there.

In my PC, I have that library file in the following path:

C:\Program Files\Cypress\ARM GCC\arm-none-eabi\lib

Thanks,

sai krishna.



Re: compile issue

RSKV posted on 13 Dec 2012 01:39 AM PST
Cypress Employee
655 Forum Posts

Please remove the extension .txt....



Re: compile issue

comy posted on 13 Dec 2012 09:34 PM PST
Senior Member
17 Forum Posts

Hello!

I have libm.a in the path which I install ,I don't know why it tells me there is no such file

I do need your help. Thank you !



Re: compile issue

RobK posted on 14 Dec 2012 11:22 PM PST
Top Contributor
56 Forum Posts

Hi,

I observed a similar issue...
The path to the lib is somehow damaged!
In your error-message...

"arm-none-eabi-gcc: SDK\1.2\\arm-none-eabi\lib\libm.a -mcpu=arm926ej-s -mthumb-interwork -g -gdwarf-2 -oUSBBulkLoopManual.elf: No such file or directory."

... there is missing the install-path of the Cypress-SDK, something like "C:\Cypress\"!!!

You should check the content of the path-variable FX3_INSTALL_PATH which you can find in the system-properties of your PC => environment-variables!

In my case the variable was even ok and I just could solve this issue by checking out my project again from our SVN-repository!

Seems to be a problem/bug in Eclipse...?!

So maybe you should delete the example project in Eclipse and import it again.

 

Regards,

Robert
 



Re: compile issue

RobK posted on 14 Dec 2012 11:27 PM PST
Top Contributor
56 Forum Posts

Oh, I just saw that you need an gcc-lib!

Then you have to check the content of the variable ARMGCC_INSTALL_PATH instead of FX3_INSTALL_PATH, of course!

 

Robert



Re: compile issue

comy posted on 14 Dec 2012 05:08 AM PST
Senior Member
17 Forum Posts

I have found my fault. Thank you very much






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.