
It was `avr-atmel-none`, which is incorrect. It must be `avr-unknown-unknown`. Additionally, there is no reason to specify the target triple per chip, it can be done for all AVR chips at once as it doesn't vary like Cortex-M chips.
17 строки
375 Б
JSON
17 строки
375 Б
JSON
{
|
|
"inherits": ["avr"],
|
|
"cpu": "atmega2560",
|
|
"build-tags": ["atmega2560", "atmega"],
|
|
"cflags": [
|
|
"-mmcu=atmega2560"
|
|
],
|
|
"ldflags": [
|
|
"-mmcu=avr6",
|
|
"-Wl,--defsym=_stack_size=512"
|
|
],
|
|
"linkerscript": "src/device/avr/atmega2560.ld",
|
|
"extra-files": [
|
|
"targets/avr.S",
|
|
"src/device/avr/atmega2560.s"
|
|
]
|
|
}
|