IR sensor error
Moderator: Benj
IR sensor error
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:110:5: warning: #warning "PWM Channel Uses Resource Timer 0"
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:495:3: warning: #warning "Period control register not available on target device, period will default to 255 + 1"
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c: In function 'FCD_01bf1_RC5__Initialise_States':
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:782: error: 'TIMER_ENREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:782: error: (Each undeclared identifier is reported only once
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:782: error: for each function it appears in.)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:782: error: 'TIMER_ENBIT' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c: In function 'FCD_01bf1_RC5__RXDisable':
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:813: error: 'TIMER_ENREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:813: error: 'TIMER_ENBIT' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c: In function 'FCD_01bf1_RC5__Timer_Event':
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:915: error: 'TIMER_REGISTER' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c: In function 'FCD_01bf1_RC5__Signal_Edge':
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'TIMER_REGISTER' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'TIMER_FLAGREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'TIMER_FLAGBIT' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c: In function 'FCD_01bf1_RC5__RXEnable':
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'TIMER_FLAGREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'TIMER_FLAGBIT' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'TIMER_ENREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'TIMER_ENBIT' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'INT_GLOBREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'INT_GLOBAL' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c: At top level:
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
Error returned from [avr-gcc.exe]
C:\Program Files (x86)\Flowcode\Common\Compilers\avr\batchfiles\avra.bat reported error code 1
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_PWM.c:495:3: warning: #warning "Period control register not available on target device, period will default to 255 + 1"
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c: In function 'FCD_01bf1_RC5__Initialise_States':
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:782: error: 'TIMER_ENREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:782: error: (Each undeclared identifier is reported only once
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:782: error: for each function it appears in.)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:782: error: 'TIMER_ENBIT' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c: In function 'FCD_01bf1_RC5__RXDisable':
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:813: error: 'TIMER_ENREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:813: error: 'TIMER_ENBIT' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c: In function 'FCD_01bf1_RC5__Timer_Event':
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:915: error: 'TIMER_REGISTER' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c: In function 'FCD_01bf1_RC5__Signal_Edge':
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'TIMER_REGISTER' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'TIMER_FLAGREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'TIMER_FLAGBIT' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c: In function 'FCD_01bf1_RC5__RXEnable':
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'TIMER_FLAGREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'TIMER_FLAGBIT' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'TIMER_ENREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'TIMER_ENBIT' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'INT_GLOBREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: 'INT_GLOBAL' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c: At top level:
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
Error returned from [avr-gcc.exe]
C:\Program Files (x86)\Flowcode\Common\Compilers\avr\batchfiles\avra.bat reported error code 1
- Attachments
-
- rc5-1.fcfx
- (8.99 KiB) Downloaded 156 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: IR sensor error
I've fixed the problem, just need to push it to the update system. Hopefully I'll be able to do this shortly.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: IR sensor error
Fix should be available now using Help -> Check for updates.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: IR sensor error
I need help .
#ifndef INT_EDGEREG
#error "RC5 Interrupt Edge Control Bit and Register not set, does chip have INT interrupt pin? If so then contact support"
#endif
#ifndef INT_ENREG
#error "RC5 Interrupt Enable Bit and Register not set, does chip have INT interrupt pin? If so then contact support"
#endif
#ifndef TIMER_ENREG
#error "RC5 Timer Enable Bit and Register not set, does chip have Timer0? If so then contact support"
#endif
#ifndef TIMER_REGISTER
#error "RC5 Timer Count Register not set, does chip have Timer0? If so then contact support"
#endif
#ifndef TIMER_CTRLREG
#error "RC5 Timer Control Bit and Register not set, does chip have Timer0? If so then contact support"
#endif
#ifndef TIMER_CSREG
#error "RC5 Clock Select Control Bit and Register not set, does chip have Timer0? If so then contact support"
#endif
#ifndef INT_EDGEREG
#error "RC5 Interrupt Edge Control Bit and Register not set, does chip have INT interrupt pin? If so then contact support"
#endif
#ifndef INT_ENREG
#error "RC5 Interrupt Enable Bit and Register not set, does chip have INT interrupt pin? If so then contact support"
#endif
#ifndef TIMER_ENREG
#error "RC5 Timer Enable Bit and Register not set, does chip have Timer0? If so then contact support"
#endif
#ifndef TIMER_REGISTER
#error "RC5 Timer Count Register not set, does chip have Timer0? If so then contact support"
#endif
#ifndef TIMER_CTRLREG
#error "RC5 Timer Control Bit and Register not set, does chip have Timer0? If so then contact support"
#endif
#ifndef TIMER_CSREG
#error "RC5 Clock Select Control Bit and Register not set, does chip have Timer0? If so then contact support"
#endif
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: IR sensor error
Hello,
Please can you post your project file and I'll investigate for you.
Please can you post your project file and I'll investigate for you.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: IR sensor error
c code gives error. thanks in advance
- Attachments
-
- RC5_Test_Rx (1).fcfx
- (8.87 KiB) Downloaded 159 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: IR sensor error
Hello,
Just tried your project here and it's compiling ok. Have you done a full database update using the Help -> Check for updates dialogue?
Also are you running the latest 8.2?
Just tried your project here and it's compiling ok. Have you done a full database update using the Help -> Check for updates dialogue?
Also are you running the latest 8.2?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: IR sensor error
I made updates.
There is also no problem in compiling.
arduino doesn't work either.
I'm using translation. Sorry.
There is also no problem in compiling.
arduino doesn't work either.
I'm using translation. Sorry.