I am trying to use the same bootloader source from the IDE1.8.2
{ path: \Arduino\arduino-1.8.2\hardware\arduino\avr\bootloaders\stk500v2 }
to be modified to support the ATmega1284P processor.
I have two CPUs on a custom PCB.
The code for the AT2560 works fine.
I used the MightyCore bootloader modified to run on 12MHz .
But I am having problems once the bootloaderinstalled -
The serial ( usb) port stops responding once a short program is starts running.
When compiling the Makefile to compile and link stk500boot bootloader
Author: Peter Fleury but setting the MCU to 1284P I get errors.
what do I need to to be able to load the setting for the 1284P on that makefile ?
just adding the following code to the makefile does not work.
mega1284P: MCU = atmega1284P
mega1284P: F_CPU = 12000000
mega1284P: BOOTLOADER_ADDRESS = 1E000
mega1284P: CFLAGS += -D_MEGA_BOARD_
mega1284P: begin gccversion sizebefore build sizeafter end
mv $(TARGET).hex stk500boot_KRIZA1284P.hex
############################################################