Unfortunately, the compiler stops with an error, and I can't figure out how to set up the RC5 component macro correctly so that the compiler is also good.
Please help! Tank you.
Error message:
C:\___NEW LIFE___\FC\RC5>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avr-gcc.exe" -mmcu=atmega328p -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\___NEW LIFE___\FC\RC5\RXRC5.elf" "C:\___NEW LIFE___\FC\RC5\RXRC5.c" -lm -Wl,-gc-sections
C:\___NEW LIFE___\FC\RC5\RXRC5.c:439:4: error: #error "RC5 Interrupt Edge Control Bit and Register not set, does chip have INT interrupt pin? If so then contact support"
#error "RC5 Interrupt Edge Control Bit and Register not set, does chip have INT interrupt pin? If so then contact support"
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c:442:4: error: #error "RC5 Interrupt Enable Bit and Register not set, does chip have INT interrupt pin? If so then contact support"
#error "RC5 Interrupt Enable Bit and Register not set, does chip have INT interrupt pin? If so then contact support"
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c:445:4: error: #error "RC5 Timer Enable Bit and Register not set, does chip have Timer0? If so then contact support"
#error "RC5 Timer Enable Bit and Register not set, does chip have Timer0? If so then contact support"
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c:448:4: error: #error "RC5 Timer Count Register not set, does chip have Timer0? If so then contact support"
#error "RC5 Timer Count Register not set, does chip have Timer0? If so then contact support"
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c:451:4: error: #error "RC5 Timer Control Bit and Register not set, does chip have Timer0? If so then contact support"
#error "RC5 Timer Control Bit and Register not set, does chip have Timer0? If so then contact support"
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c:454:4: error: #error "RC5 Clock Select Control Bit and Register not set, does chip have Timer0? If so then contact support"
#error "RC5 Clock Select Control Bit and Register not set, does chip have Timer0? If so then contact support"
^
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\includes.c:814:0,
from C:\___NEW LIFE___\FC\RC5\RXRC5.c:497:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\AVR\AVR_CAL_PWM.c:110:5: warning: #warning "PWM Channel Uses Resource Timer 0" [-Wcpp]
#warning "PWM Channel Uses Resource Timer 0"
^
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\AVR\AVR_CAL_PWM.c:495:3: warning: #warning "Period control register not available on target device, period will default to 255 + 1" [-Wcpp]
#warning "Period control register not available on target device, period will default to 255 + 1"
^
In file included from C:\___NEW LIFE___\FC\RC5\RXRC5.c:45:0:
C:\___NEW LIFE___\FC\RC5\RXRC5.c: In function 'FCD_01bf1_RC51__Initialise_States':
C:\___NEW LIFE___\FC\RC5\RXRC5.c:766:11: error: 'TIMER_ENREG' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:413:38: note: in definition of macro 'set_bit'
#define set_bit( reg, bitNumb ) ((reg) |= (1 << (bitNumb)))
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c:766:4: note: in expansion of macro 'st_bit'
C:\___NEW LIFE___\FC\RC5\RXRC5.c:766:11: note: each undeclared identifier is reported only once for each function it appears in
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:413:38: note: in definition of macro 'set_bit'
#define set_bit( reg, bitNumb ) ((reg) |= (1 << (bitNumb)))
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c:766:4: note: in expansion of macro 'st_bit'
C:\___NEW LIFE___\FC\RC5\RXRC5.c:766:24: error: 'TIMER_ENBIT' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:413:53: note: in definition of macro 'set_bit'
#define set_bit( reg, bitNumb ) ((reg) |= (1 << (bitNumb)))
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c:766:4: note: in expansion of macro 'st_bit'
C:\___NEW LIFE___\FC\RC5\RXRC5.c: In function 'FCD_01bf1_RC51__RXDisable':
C:\___NEW LIFE___\FC\RC5\RXRC5.c:797:14: error: 'TIMER_ENREG' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:412:39: note: in definition of macro 'clear_bit'
#define clear_bit( reg, bitNumb ) ((reg) &= ~(1 << (bitNumb)))
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c:797:6: note: in expansion of macro 'cr_bit'
#endif
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c:797:27: error: 'TIMER_ENBIT' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:412:55: note: in definition of macro 'clear_bit'
#define clear_bit( reg, bitNumb ) ((reg) &= ~(1 << (bitNumb)))
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c:797:6: note: in expansion of macro 'cr_bit'
#endif
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c: In function 'FCD_01bf1_RC51__Timer_Event':
C:\___NEW LIFE___\FC\RC5\RXRC5.c:911:3: error: 'TIMER_REGISTER' undeclared (first use in this function)
{
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c: In function 'FCD_01bf1_RC51__Signal_Edge':
C:\___NEW LIFE___\FC\RC5\RXRC5.c
#ifdef MX_CAL_PIC16
^
In file included from C:\___NEW LIFE___\FC\RC5\RXRC5.c:45:0:
C:\___NEW LIFE___\FC\RC5\RXRC5.c
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:414:38: note: in definition of macro 'test_bit'
#define test_bit( reg, bitNumb ) ((reg) & (1 << (bitNumb)))
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c
C:\___NEW LIFE___\FC\RC5\RXRC5.c
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:414:52: note: in definition of macro 'test_bit'
#define test_bit( reg, bitNumb ) ((reg) & (1 << (bitNumb)))
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c
C:\___NEW LIFE___\FC\RC5\RXRC5.c: In function 'FCD_01bf1_RC51__RXEnable':
C:\___NEW LIFE___\FC\RC5\RXRC5.c
#ifdef MX_CAL_PIC16
^
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:412:39: note: in definition of macro 'clear_bit'
#define clear_bit( reg, bitNumb ) ((reg) &= ~(1 << (bitNumb)))
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c
#ifdef MX_CAL_PIC16
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:412:55: note: in definition of macro 'clear_bit'
#define clear_bit( reg, bitNumb ) ((reg) &= ~(1 << (bitNumb)))
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c
#ifdef MX_CAL_PIC16
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c
#ifdef MX_CAL_AVR
^
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:413:38: note: in definition of macro 'set_bit'
#define set_bit( reg, bitNumb ) ((reg) |= (1 << (bitNumb)))
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c
#ifdef MX_CAL_AVR
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:413:53: note: in definition of macro 'set_bit'
#define set_bit( reg, bitNumb ) ((reg) |= (1 << (bitNumb)))
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c
#ifdef MX_CAL_AVR
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:413:38: note: in definition of macro 'set_bit'
#define set_bit( reg, bitNumb ) ((reg) |= (1 << (bitNumb)))
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c
sei();
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:413:53: note: in definition of macro 'set_bit'
#define set_bit( reg, bitNumb ) ((reg) |= (1 << (bitNumb)))
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c
sei();
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c: At top level:
C:\___NEW LIFE___\FC\RC5\RXRC5.c
st_bit(INT_FLAGREG, INT_FLAGBIT);
^
C:\___NEW LIFE___\FC\RC5\RXRC5.c
st_bit(TIMER_FLAGREG, TIMER_FLAGBIT);
^
Error returned from [avr-gcc.exe]
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\AVR\batchfiles\avra.bat reported error code 0x1
Autoclose turned off
FINISHED