PSoC >> PSoC Mixed-Signal Array

Pages: 1
shazan
stranger


Reged: Jun 21 2008
Posts: 2
Build error on old sample from Cypress
      #61732 - Sat Jun 21 2008 07:07 AM

Hi
I have just downoaded the Psoc designer5, and also the Hitech PSOC compiler. I am interested in the DTMF decoder examples that are available at Cypress, and which must be working.
This is the error I get when I build one of them:
!ED:\...\analog___low_cpu_DTMF__decoder_an2247_13\AN2247\dtmf_low_cpu\dtmf_low_cpu\main.c(58):(1098) conflicting declarations for variable "_dtmf_analyze" (./dtmf_analyze.c:29) (error)

C:\PROGRA~1\Cypress\Common\CYPRES~3\tools\make: *** [output/dtmf_low_cpu.hex] Error 1
I tried to see where _dtmf_analyze was being mistakenly declared, but havent found it?
Your help needed.


Post Extras: Print Post   Remind Me!   Notify Moderator  
clydeAdministrator
HI-TECH team member
*****

Reged: Oct 16 2003
Posts: 622
Re: Build error on old sample from Cypress [Re: shazan]
      #61742 - Sat Jun 21 2008 07:03 PM

Quote:

Hi

!ED:\...\analog___low_cpu_DTMF__decoder_an2247_13\AN2247\dtmf_low_cpu\dtmf_low_cpu\main.c(58):(1098) conflicting declarations for variable "_dtmf_analyze" (./dtmf_analyze.c:29) (error)

C:\PROGRA~1\Cypress\Common\CYPRES~3\tools\make: *** [output/dtmf_low_cpu.hex] Error 1
I tried to see where _dtmf_analyze was being mistakenly declared, but havent found it?
Your help needed.



Look in the error message; it gives you the file names and line numbers of the two declarations:
in main.c line 58, and in dtmf_analyze.c at line 29.


Post Extras: Print Post   Remind Me!   Notify Moderator  
shazan
stranger


Reged: Jun 21 2008
Posts: 2
Re: Build error on old sample from Cypress [Re: clyde]
      #61752 - Sun Jun 22 2008 02:02 AM

Hi Clyde
The file is an old application note from Cypress, so I wasnt expecting a function call to generate errors.
The source is:
Low CPU DTMF decoder

The line on dtmf-analyze.c is :
void dtmf_analyze(){
.
.
.
}
While the line on main.c is :
dtmf_analyze();
which I forced to:
void dtmf_analyze();
LOL ........ this worked and the build completed, albeit with 3 warnings, which I will go into now.
Thank you.


Post Extras: Print Post   Remind Me!   Notify Moderator  
mustang
stranger


Reged: Oct 04 2007
Posts: 19
Loc: Greater Boston, MA
Re: Build error on old sample from Cypress [Re: shazan]
      #61782 - Sun Jun 22 2008 09:20 AM

Quote:

Hi Clyde
The file is an old application note from Cypress, so I wasn't expecting a function call to generate errors.





Welcome to the world of the PSoC.

Wait until you start to see how bad some of the drivers are.
Oh yea, and there is very_little/no fault checking in many of the drivers. So, the PSoC can hang in some circumstances.

So, don't forget to implement the watchdog timer.
Hey, if it was easy, then everyone would be doing it, and our job wouldn't be paying a 1/4 of what it does now.

______
Joe


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:  ndouglas, Dan Henry, jtemples, jeff, Andrew L, mikerj, dave g, meisty, josh stevo 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Topic views: 777

Rate this topic

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5