Arduino Mega 1280 support

Fix ldflags

Update targets/arduino-mega1280.json

Co-authored-by: Ayke <aykevanlaethem@gmail.com>

Update atmega1280.json

Update Makefile
This commit is contained in:
developer
2021-04-05 19:30:40 -03:00
committed by Ron Evans
parent e7a05b6e74
commit aa8e12c464
5 changed files with 269 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
{
"inherits": ["atmega1280"],
"build-tags": ["arduino_mega1280"],
"ldflags": [
"-Wl,--defsym=_bootloader_size=4096"
],
"flash-command":"avrdude -c arduino -b 57600 -p atmega1280 -P {port} -U flash:w:{hex}:i -v -D"
}
+17
View File
@@ -0,0 +1,17 @@
{
"inherits": ["avr"],
"cpu": "atmega1280",
"build-tags": ["atmega1280", "atmega"],
"cflags": [
"-mmcu=atmega1280"
],
"ldflags": [
"-mmcu=avr51",
"-Wl,--defsym=_stack_size=512"
],
"linkerscript": "src/device/avr/atmega1280.ld",
"extra-files": [
"targets/avr.S",
"src/device/avr/atmega1280.s"
]
}