IR sensor error

Moderator: Benj

Post Reply
cihann07
Posts: 6
Joined: Tue Nov 05, 2019 9:14 pm
Contact:

IR sensor error

Post 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
Attachments
rc5-1.fcfx
(8.99 KiB) Downloaded 152 times

User avatar
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

Post 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.

User avatar
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

Post by Benj »

Fix should be available now using Help -> Check for updates.

cihann07
Posts: 6
Joined: Tue Nov 05, 2019 9:14 pm
Contact:

Re: IR sensor error

Post by cihann07 »

Thank you. good work

cihann07
Posts: 6
Joined: Tue Nov 05, 2019 9:14 pm
Contact:

Re: IR sensor error

Post 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

User avatar
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

Post by Benj »

Hello,

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

cihann07
Posts: 6
Joined: Tue Nov 05, 2019 9:14 pm
Contact:

Re: IR sensor error

Post by cihann07 »

c code gives error. thanks in advance
Attachments
RC5_Test_Rx (1).fcfx
(8.87 KiB) Downloaded 154 times

cihann07
Posts: 6
Joined: Tue Nov 05, 2019 9:14 pm
Contact:

Re: IR sensor error

Post by cihann07 »

help please

User avatar
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

Post 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?

medelec35
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

Post by medelec35 »

Compiling OK for me as well.
Martin

cihann07
Posts: 6
Joined: Tue Nov 05, 2019 9:14 pm
Contact:

Re: IR sensor error

Post by cihann07 »

I made updates.
There is also no problem in compiling.
arduino doesn't work either.
I'm using translation. Sorry.

Post Reply