Quad udoo - IR library completion error

Discussion in 'Troubleshooting' started by UdooBoo, Nov 7, 2014.

  1. UdooBoo

    UdooBoo New Member

    Joined:
    Nov 7, 2014
    Messages:
    1
    Likes Received:
    0
    Hi i am beginner in udoo, i try to write IR reciver but i got errors.

    Code:
    In file included from F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:20:0:
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::mark(int)':
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:227:31: error: 'TCCR2A' was not declared in this scope
     #define TIMER_ENABLE_PWM     (TCCR2A |= _BV(COM2B1))
                                   ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:227:3: note: in expansion of macro 'TIMER_ENABLE_PWM'
       TIMER_ENABLE_PWM; // Enable pin 3 PWM output
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:227:45: error: 'COM2B1' was not declared in this scope
     #define TIMER_ENABLE_PWM     (TCCR2A |= _BV(COM2B1))
                                                 ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:227:3: note: in expansion of macro 'TIMER_ENABLE_PWM'
       TIMER_ENABLE_PWM; // Enable pin 3 PWM output
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:227:51: error: '_BV' was not declared in this scope
     #define TIMER_ENABLE_PWM     (TCCR2A |= _BV(COM2B1))
                                                       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:227:3: note: in expansion of macro 'TIMER_ENABLE_PWM'
       TIMER_ENABLE_PWM; // Enable pin 3 PWM output
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::space(int)':
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:228:31: error: 'TCCR2A' was not declared in this scope
     #define TIMER_DISABLE_PWM    (TCCR2A &= ~(_BV(COM2B1)))
                                   ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:235:3: note: in expansion of macro 'TIMER_DISABLE_PWM'
       TIMER_DISABLE_PWM; // Disable pin 3 PWM output
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:228:47: error: 'COM2B1' was not declared in this scope
     #define TIMER_DISABLE_PWM    (TCCR2A &= ~(_BV(COM2B1)))
                                                   ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:235:3: note: in expansion of macro 'TIMER_DISABLE_PWM'
       TIMER_DISABLE_PWM; // Disable pin 3 PWM output
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:228:53: error: '_BV' was not declared in this scope
     #define TIMER_DISABLE_PWM    (TCCR2A &= ~(_BV(COM2B1)))
                                                         ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:235:3: note: in expansion of macro 'TIMER_DISABLE_PWM'
       TIMER_DISABLE_PWM; // Disable pin 3 PWM output
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::enableIROut(int)':
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:230:31: error: 'TIMSK2' was not declared in this scope
     #define TIMER_DISABLE_INTR   (TIMSK2 = 0)
                                   ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:253:3: note: in expansion of macro 'TIMER_DISABLE_INTR'
       TIMER_DISABLE_INTR; //Timer2 Overflow Interrupt
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:234:3: error: 'TCCR2A' was not declared in this scope
       TCCR2A = _BV(WGM20); \
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:263:3: note: in expansion of macro 'TIMER_CONFIG_KHZ'
       TIMER_CONFIG_KHZ(khz);
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:234:16: error: 'WGM20' was not declared in this scope
       TCCR2A = _BV(WGM20); \
                    ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:263:3: note: in expansion of macro 'TIMER_CONFIG_KHZ'
       TIMER_CONFIG_KHZ(khz);
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:234:21: error: '_BV' was not declared in this scope
       TCCR2A = _BV(WGM20); \
                         ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:263:3: note: in expansion of macro 'TIMER_CONFIG_KHZ'
       TIMER_CONFIG_KHZ(khz);
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:235:3: error: 'TCCR2B' was not declared in this scope
       TCCR2B = _BV(WGM22) | _BV(CS20); \
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:263:3: note: in expansion of macro 'TIMER_CONFIG_KHZ'
       TIMER_CONFIG_KHZ(khz);
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:235:16: error: 'WGM22' was not declared in this scope
       TCCR2B = _BV(WGM22) | _BV(CS20); \
                    ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:263:3: note: in expansion of macro 'TIMER_CONFIG_KHZ'
       TIMER_CONFIG_KHZ(khz);
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:235:29: error: 'CS20' was not declared in this scope
       TCCR2B = _BV(WGM22) | _BV(CS20); \
                                 ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:263:3: note: in expansion of macro 'TIMER_CONFIG_KHZ'
       TIMER_CONFIG_KHZ(khz);
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:236:3: error: 'OCR2A' was not declared in this scope
       OCR2A = pwmval; \
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:263:3: note: in expansion of macro 'TIMER_CONFIG_KHZ'
       TIMER_CONFIG_KHZ(khz);
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:237:3: error: 'OCR2B' was not declared in this scope
       OCR2B = pwmval / 3; \
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:263:3: note: in expansion of macro 'TIMER_CONFIG_KHZ'
       TIMER_CONFIG_KHZ(khz);
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp: In member function 'void IRrecv::enableIRIn()':
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:249:3: error: 'TCCR2A' was not declared in this scope
       TCCR2A = _BV(WGM21); \
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:279:3: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
       TIMER_CONFIG_NORMAL();
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:249:16: error: 'WGM21' was not declared in this scope
       TCCR2A = _BV(WGM21); \
                    ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:279:3: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
       TIMER_CONFIG_NORMAL();
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:249:21: error: '_BV' was not declared in this scope
       TCCR2A = _BV(WGM21); \
                         ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:279:3: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
       TIMER_CONFIG_NORMAL();
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:250:3: error: 'TCCR2B' was not declared in this scope
       TCCR2B = _BV(CS21); \
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:279:3: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
       TIMER_CONFIG_NORMAL();
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:250:16: error: 'CS21' was not declared in this scope
       TCCR2B = _BV(CS21); \
                    ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:279:3: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
       TIMER_CONFIG_NORMAL();
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:251:3: error: 'OCR2A' was not declared in this scope
       OCR2A = TIMER_COUNT_TOP / 8; \
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:279:3: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
       TIMER_CONFIG_NORMAL();
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:252:3: error: 'TCNT2' was not declared in this scope
       TCNT2 = 0; \
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:279:3: note: in expansion of macro 'TIMER_CONFIG_NORMAL'
       TIMER_CONFIG_NORMAL();
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:229:31: error: 'TIMSK2' was not declared in this scope
     #define TIMER_ENABLE_INTR    (TIMSK2 = _BV(OCIE2A))
                                   ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:282:3: note: in expansion of macro 'TIMER_ENABLE_INTR'
       TIMER_ENABLE_INTR;
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:229:44: error: 'OCIE2A' was not declared in this scope
     #define TIMER_ENABLE_INTR    (TIMSK2 = _BV(OCIE2A))
                                                ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:282:3: note: in expansion of macro 'TIMER_ENABLE_INTR'
       TIMER_ENABLE_INTR;
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:229:50: error: '_BV' was not declared in this scope
     #define TIMER_ENABLE_INTR    (TIMSK2 = _BV(OCIE2A))
                                                      ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:282:3: note: in expansion of macro 'TIMER_ENABLE_INTR'
       TIMER_ENABLE_INTR;
       ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp: In function 'void TIMER2_COMPA_vect()':
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:501:25: error: 'PORTB' was not declared in this scope
     #define BLINKLED_ON()  (PORTB |= B00100000)
                             ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:370:7: note: in expansion of macro 'BLINKLED_ON'
           BLINKLED_ON();  // turn pin 13 LED on
           ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremoteInt.h:502:25: error: 'PORTB' was not declared in this scope
     #define BLINKLED_OFF() (PORTB &= B11011111)
                             ^
    F:\Works\Tools\ArduinoIDE UDOO Path\libraries\IRremote\IRremote.cpp:373:7: note: in expansion of macro 'BLINKLED_OFF'
           BLINKLED_OFF();  // turn pin 13 LED off
           ^
    i used in this library
    https://www.pjrc.com/teensy/td_libs_IRremote.html

    thank you!
     
  2. ekirei

    ekirei Administrator

    Joined:
    Jun 14, 2013
    Messages:
    78
    Likes Received:
    3
    Hi,

    UDOO has an Arduino DUE processor integrated, the libraries have to be Arduino DUE compatibles.
    I'm not sure that these libraries developed for Teensy are compatible with the SAM3X Arduino DUE processor.
     

Share This Page