mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 06:53:40 +00:00
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:
@@ -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"
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user