shazan
stranger
Reged: Jun 21 2008
Posts: 2
|
|
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.
|
clyde
HI-TECH team member
   
Reged: Oct 16 2003
Posts: 622
|
|
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.
|
shazan
stranger
Reged: Jun 21 2008
Posts: 2
|
|
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.
|
mustang
stranger
Reged: Oct 04 2007
Posts: 19
Loc: Greater Boston, MA
|
|
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
|