I am using Eclipse +Ubuntu 14.04 + AVR Dragon and program in C. Currently, I am trying to get up to speed with hardware debugging in Ubuntu. (I used to use AS 4 and 6 and debugging with my AVRONE! was great back in the day)
My code builds and runs flawlessly when I build it in Release mode. However, when I try to build it in Debug mode, I receive the following error, which makes no sense.
avr-gcc -Wl,-Map,PWM_Drive_for_RGB_LED_WS2812.map -mmcu=atmega328p -o "PWM_Drive_for_RGB_LED_WS2812.elf" ./PWM_Drive.o ./adc_atmega328p.o ./timer0_atmega328p.o
./timer0_atmega328p.o: In function `__vector_14':
../timer0_atmega328p.c:261: undefined reference to `rgbLogic1Signal'
../timer0_atmega328p.c:263: undefined reference to `rgbLogic0Signal'
collect2: error: ld returned 1 exit status
Another interesting thing about the above error is that the line numbers 261 and 263 in the respective files correspond to totally irrelevant parts of the code where there is no reference to the functions rgbLogic1Signal and rgbLogic0Signal . (mind you all optimizations are turned off as well during the build)
Any suggestions on what may be happening here?