Page 1 of 1

IR sensor error

Posted: Sun Jun 21, 2020 3:00 am
by cihann07
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:1065: error: 'TIMER_REGISTER' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:1074: error: 'TIMER_FLAGREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:1074: 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:1287: error: 'TIMER_FLAGREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:1287: error: 'TIMER_FLAGBIT' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:1298: error: 'TIMER_ENREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:1298: error: 'TIMER_ENBIT' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:1299: error: 'INT_GLOBREG' undeclared (first use in this function)
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:1299: 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:1382: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
C:\Users\cihan\OneDrive\IRKUMA~1\rc5-1.c:1402: 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

Re: IR sensor error

Posted: Mon Jun 22, 2020 2:10 pm
by Benj
I've fixed the problem, just need to push it to the update system. Hopefully I'll be able to do this shortly.

Re: IR sensor error

Posted: Tue Jun 23, 2020 10:16 am
by Benj
Fix should be available now using Help -> Check for updates.

Re: IR sensor error

Posted: Wed Jun 24, 2020 2:21 pm
by cihann07
Thank you. good work

Re: IR sensor error

Posted: Thu Jun 25, 2020 2:27 am
by cihann07
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

Re: IR sensor error

Posted: Mon Jun 29, 2020 2:51 pm
by Benj
Hello,

Please can you post your project file and I'll investigate for you.

Re: IR sensor error

Posted: Mon Jun 29, 2020 11:02 pm
by cihann07
c code gives error. thanks in advance

Re: IR sensor error

Posted: Fri Jul 17, 2020 10:21 am
by cihann07
help please

Re: IR sensor error

Posted: Wed Jul 22, 2020 1:47 pm
by Benj
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?

Re: IR sensor error

Posted: Wed Jul 22, 2020 2:42 pm
by medelec35
Compiling OK for me as well.

Re: IR sensor error

Posted: Thu Jul 23, 2020 12:17 pm
by cihann07
I made updates.
There is also no problem in compiling.
arduino doesn't work either.
I'm using translation. Sorry.