
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.
19 строки
491 Б
JSON
19 строки
491 Б
JSON
{
|
|
"inherits": ["avr"],
|
|
"cpu": "atmega1284p",
|
|
"build-tags": ["atmega1284p", "atmega"],
|
|
"cflags": [
|
|
"-mmcu=atmega1284p"
|
|
],
|
|
"ldflags": [
|
|
"-mmcu=avr51",
|
|
"-Wl,--defsym=_bootloader_size=0",
|
|
"-Wl,--defsym=_stack_size=512"
|
|
],
|
|
"linkerscript": "src/device/avr/atmega1284p.ld",
|
|
"extra-files": [
|
|
"targets/avr.S",
|
|
"src/device/avr/atmega1284p.s"
|
|
],
|
|
"emulator": ["simavr", "-m", "atmega1284p", "-f", "20000000"]
|
|
}
|