diff --git a/boards/mega-xplained/Makefile.include b/boards/mega-xplained/Makefile.include index 63c2961f0f1cc685b6fb7619fa8ff785864e9b3d..9a8d7e5f4fc0b1631d62418f62475732d0357639 100644 --- a/boards/mega-xplained/Makefile.include +++ b/boards/mega-xplained/Makefile.include @@ -1,6 +1,11 @@ # define the cpu used by the Mega Xplained board export CPU = atmega1284p +# Found by checking fuse settings (2048 words so 4KB) +# https://www.microchip.com/DevelopmentTools/ProductDetails/atmega1284p-xpld +BOOTLOADER_SIZE ?= 4K +ROM_RESERVED ?= $(BOOTLOADER_SIZE) + # configure the terminal program export PORT_LINUX ?= /dev/ttyACM0 export PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial*)))