Hello!
I'm trying to compile the avr-xboot but it fails.
I'm using avr-gcc (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2 and latest git version: alexforencich-xboot-64803a0
In Windows, the first problem, which is easily fixable is:
sizebefore:
@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi
sizeafter:
@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
should be:
sizebefore:
@if exist [ $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi
sizeafter:
@if exist [ $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
After fixing the above, a simple make, works:
(btw: where is the highlighted message from?):
c:\code\bootloader\avrx>make
The system cannot find the path specified.
-------- begin --------
avr-gcc (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
....
Creating Symbol Table: xboot.sym
"C:/Program Files (x86)/Atmel/AVR Tools/AVR Toolchain/bin/avr-nm" -n xboot.elf > xboot.sym
Errors: none
-------- end --------
ECHO is off.
However, as I do not use the default atxmega64a3, I will need to use a config file.
I've copied
copy conf\x32a4.conf.mk x32a4u.conf.mk
Note: there's no mention in the documentation that you need to copy the file from conf/ to .
.. then edited the conf file to suit my needs. Trying to compile results in:
c:\code\bootloader\avrx>make x32a4u.conf.mk
The system cannot find the path specified.
cp x32a4u.conf.mk config.mk
make
The system cannot find the path specified.
make[1]: Entering directory `Y:/p4/code/bootloader/avrx'
-------- begin --------
avr-gcc (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
"Generating config.h for atxmega32a4u"
"1" was unexpected at this time.
make[1]: *** [config.h] Error 255
make[1]: Leaving directory `Y:/p4/code/bootloader/avrx'
make: *** [x32a4u.conf.mk] Error 2
Note, that I've tried any configuration without editing it and I still get the same error.
Now, I'm quite stuck. Right now I'm trying to debug the Makefile to see where the "1" comes from, but it is quite difficult. I would appreciate any suggestions.
Regards!