I've been trying to get eclipse to compile the firmware on windows following the wiki instructions - I also found I needed to install g++ via cygwin and add that to the path as it complained about missing g++.
When I try and compile the AVR front board code I end up with the following errors...
Description Resource Path Location Type
Symbol 'DDRB' could not be resolved main.c /AVR line 54 Semantic Error
Symbol 'DDRB' could not be resolved main.c /AVR line 55 Semantic Error
Symbol 'PB0' could not be resolved main.c /AVR line 55 Semantic Error
Symbol 'PB0' could not be resolved main.c /AVR line 56 Semantic Error
Symbol 'PORTB' could not be resolved main.c /AVR line 56 Semantic Error
And a separate error...
Building target: AVR.elf
Invoking: Cross GCC Linker
avr-gcc -Wl,-Map="DrumSynthFront.map" -Wl,--start-group -Wl,-lm -Wl,--end-group -Wl,--gc-sections -mmcu=atmega644 -o "AVR.elf" ./Preset/presetManager.o ./Menu/Cc2Text.o ./Menu/copyClearTools.o ./Menu/menu.o ./Menu/screensaver.o ./IO/adcPots.o ./IO/din.o ./IO/dout.o ./IO/uart.o ./Hardware/SD/SD_routines.o ./Hardware/SD/SPI_routines.o ./Hardware/SD/diskIo.o ./Hardware/SD/ff.o ./Hardware/lcd.o ./Hardware/timebase.o ./buttonHandler.o ./encoder.o ./fifo.o ./frontPanelParser.o ./ledHandler.o ./main.o
cygwin warning:
MS-DOS style path detected: C:\Development\LXR-master\front\LxrAvr\Release
Preferred POSIX equivalent is: /cygdrive/c/Development/LXR-master/front/LxrAvr/Release
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
Finished building target: AVR.elf
C:/Program Files (x86)/GnuWin32/bin/make --no-print-directory post-build
cygwin warning:
MS-DOS style path detected: C:\Development\LXR-master\front\LxrAvr\Release
Preferred POSIX equivalent is: /cygdrive/c/Development/LXR-master/front/LxrAvr/Release
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
/usr/bin/sh: -c: line 0: syntax error near unexpected token `('
/usr/bin/sh: -c: line 0: `C:/Program Files (x86)/GnuWin32/bin/make --no-print-directory post-build'
make: *** [AVR.elf] Error 1
Any insight on what might be wrong would be very much appreciated.
Thanks
Comments
http://forum.sonic-potions.com/discussion/comment/5349#Comment_5219
Once you have it building with Makefile, then eclipse will be easier as you'll be able to compare, etc.
you can use winAVR to get the AVR GCC compilers.
http://winavr.sourceforge.net/