I crated a config file for the xmega384D3 and modified the Makefile to have the correct boot loader address.
the makefile programs the boot loader to the chip and i can enter the boot loader using a button. When trying to flash the application following your example it fails to program. avrdude says ****failed repeatedly and the verify step at the end fails also. Any idea why this might happen?