Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > Building errors

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



Building errors
Moderator:
ANCY

Post Reply
Follow this topic



Building errors

burningmosfet posted on 07 Oct 2011 3:10 AM PST

1 Forum Post

 Dear all i'm a newbie in psoc programming. I have spent a week in trying to run a code example found in the CSDADC documentation (page 45/55 of my datasheet) that i'll post here:

 

#include <m8c.h>        // part specific constants and macros

#include "PSoCAPI.h"    // PSoC API definitions for all User Modules

//#define ACD_KIND  CSDADC_RATIOMETRIC

#define ACD_KIND  CSDADC_ABSOLUTE

WORD wCal;

WORD wResult;

void main(void)

{

  M8C_EnableGInt;

  CSDADC_Start();

  CSDADC_SetDefaultFingerThresholds();  

  CSDADC_InitializeBaselines();  

  

#if (ACD_KIND==CSDADC_ABSOLUTE)

  CSDADC_EnableADC(ACD_KIND);

 wCal = CSDADC_wCal(1000);

#endif

while (1) {

    CSDADC_EnableCapsense();

CSDADC_ScanAllSensors();

    CSDADC_UpdateAllBaselines();

    CSDADC_EnableADC(ACD_KIND);

    CSDADC_EnableInput(0x01, 0x02); // use P2[0]

    CSDADC_StartADC();

    while (0 == CSDADC_fIsDataAvailable());

    wResult = CSDADC_wGetDataClearFlag(); 

    CSDADC_StopADC();

    CSDADC_DisableInput(0x01, 0x02); // required for normal CSD operation

}  

}

 

Everhing i do i get this error:

 

[warning]calling a function without prototype may cause runtime errors if the function does not return int or unsigned int

....

!ERROR {linker} file 'main.o': undefined symbol '_CSDADC_fIsDataAvailable'

 

It seems like if he doesn't see the libraries, i doesn't know what to do.

 



Re: Building errors

David Ron posted on 08 Oct 2011 12:29 AM PST
Top Contributor
24 Forum Posts

burningmosfet,

 

if you can repost the question on psoc 1 forum, you'll get better response.

this is psoc 5 forum






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