Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on hw_timer.h #13

Open
abdoutech93 opened this issue May 15, 2018 · 2 comments
Open

Error on hw_timer.h #13

abdoutech93 opened this issue May 15, 2018 · 2 comments

Comments

@abdoutech93
Copy link

Please any one can help with this error !?

In file included from sketch.pde:15,
from sketch.cpp:2:
../../../../cpu/avr/hw_timer.h: In function 'int8_t hwtimer_ini(uint8_t, uint8_t, uint8_t, uint16_t)':
../../../../cpu/avr/hw_timer.h:233: error: 'TCCR3B' was not declared in this scope
../../../../cpu/avr/hw_timer.h:233: error: 'TCCR4B' was not declared in this scope
../../../../cpu/avr/hw_timer.h:233: error: 'TCCR5B' was not declared in this scope
../../../../cpu/avr/hw_timer.h:235: error: 'TCCR3A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:235: error: 'TCCR4A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:235: error: 'TCCR5A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:250: error: 'ICR3' was not declared in this scope
../../../../cpu/avr/hw_timer.h:250: error: 'ICR4' was not declared in this scope
../../../../cpu/avr/hw_timer.h:250: error: 'ICR5' was not declared in this scope
../../../../cpu/avr/hw_timer.h:259: error: 'OCR3A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:259: error: 'OCR4A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:259: error: 'OCR5A' was not declared in this scope
../../../../cpu/avr/hw_timer.h: In function 'int32_t hwtimer_pwm_max_ticks(uint8_t)':
../../../../cpu/avr/hw_timer.h:392: error: 'TCCR3A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:392: error: 'TCCR4A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:392: error: 'TCCR5A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:393: error: 'TCCR3B' was not declared in this scope
../../../../cpu/avr/hw_timer.h:393: error: 'TCCR4B' was not declared in this scope
../../../../cpu/avr/hw_timer.h:393: error: 'TCCR5B' was not declared in this scope
../../../../cpu/avr/hw_timer.h:409: error: 'OCR3A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:409: error: 'OCR4A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:409: error: 'OCR5A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:414: error: 'ICR3' was not declared in this scope
../../../../cpu/avr/hw_timer.h:414: error: 'ICR4' was not declared in this scope
../../../../cpu/avr/hw_timer.h:414: error: 'ICR5' was not declared in this scope
../../../../cpu/avr/hw_timer.h: In function 'int8_t hwtimer_set_pwm(uint8_t, uint8_t, uint16_t)':
../../../../cpu/avr/hw_timer.h:444: error: 'OCR3A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:444: error: 'OCR4A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:444: error: 'OCR5A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:444: error: 'OCR3B' was not declared in this scope
../../../../cpu/avr/hw_timer.h:444: error: 'OCR4B' was not declared in this scope
../../../../cpu/avr/hw_timer.h:444: error: 'OCR5B' was not declared in this scope
../../../../cpu/avr/hw_timer.h:444: error: 'OCR1C' was not declared in this scope
../../../../cpu/avr/hw_timer.h:444: error: 'OCR3C' was not declared in this scope
../../../../cpu/avr/hw_timer.h:444: error: 'OCR4C' was not declared in this scope
../../../../cpu/avr/hw_timer.h:444: error: 'OCR5C' was not declared in this scope
../../../../cpu/avr/hw_timer.h: In function 'int8_t hwtimer_set_com(uint8_t, uint8_t, uint8_t)':
../../../../cpu/avr/hw_timer.h:465: error: 'TCCR3A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:465: error: 'TCCR4A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:465: error: 'TCCR5A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:467: error: 'TCCR3A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:467: error: 'TCCR4A' was not declared in this scope
../../../../cpu/avr/hw_timer.h:467: error: 'TCCR5A' was not declared in this scope
../../../../cpu/avr/hw_timer.h: In function 'int8_t hwtimer_fin(uint8_t)':
../../../../cpu/avr/hw_timer.h:517: error: 'TCCR3B' was not declared in this scope
../../../../cpu/avr/hw_timer.h:517: error: 'TCCR4B' was not declared in this scope
../../../../cpu/avr/hw_timer.h:517: error: 'TCCR5B' was not declared in this scope
make: *** [obj_arduino/sketch.o] Error 1

@harald42
Copy link

witch sketch example produce the error ?

@abdoutech93
Copy link
Author

abdoutech93 commented May 15, 2018

yes !!! I'm on windows envirment.
and when I disable the hw_timer, and I tried to compile a sketch I got thoes errors too :

contiki-arduino.a(arduino-process): In function mcu_sleep_init': contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../apps/arduino/arduino-process.c:93: undefined reference to mcusleepcycle'
contiki-arduino.a(arduino-process): In function mcu_sleep_off': contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../apps/arduino/arduino-process.c:118: undefined reference to mcusleepcycle'
contiki-arduino.a(arduino-process): In function mcu_sleep_on': contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../apps/arduino/arduino-process.c:111: undefined reference to mcusleepcycle'
contiki-arduino.a(arduino-process): In function mcu_sleep_off': contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../apps/arduino/arduino-process.c:118: undefined reference to mcusleepcycle'
contiki-arduino.a(arduino-process): In function mcu_sleep_on': contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../apps/arduino/arduino-process.c:111: undefined reference to mcusleepcycle'
contiki-arduino.a(arduino-process): In function process_thread_arduino_sketch': contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../apps/arduino/arduino-process.c:184: undefined reference to etimer_reset_with_new_interval'
contiki-arduino.a(sensors.o): In function process_thread_sensors_process': contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../core/lib/sensors.c:113: undefined reference to sensors_flags'
contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../core/lib/sensors.c:113: undefined reference to sensors_flags' contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../core/lib/sensors.c:112: undefined reference to sensors'
contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../core/lib/sensors.c:112: undefined reference to sensors' contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../core/lib/sensors.c:125: undefined reference to sensors_flags'
contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../core/lib/sensors.c:125: undefined reference to sensors_flags' contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../core/lib/sensors.c:126: undefined reference to sensors'
contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../core/lib/sensors.c:126: undefined reference to sensors' contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../core/lib/sensors.c:129: undefined reference to sensors_flags'
contiki-arduino\examples\arduino\sketchs\arduino-led/../../../../core/lib/sensors.c:129: undefined reference to `sensors_flags'
make: *** [example.arduino] Error 1
rm example.co obj_arduino/sketch.o
make: write error

NOTE: using the same contiki source i can compile successfully a contiki default format .c for Arduino Uno

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants