
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 строки
352 Б
JSON
17 строки
352 Б
JSON
{
|
|
"inherits": ["avr"],
|
|
"cpu": "atmega328p",
|
|
"build-tags": ["atmega328p", "atmega", "avr5"],
|
|
"cflags": [
|
|
"-mmcu=atmega328p"
|
|
],
|
|
"ldflags": [
|
|
"-mmcu=avr5"
|
|
],
|
|
"linkerscript": "src/device/avr/atmega328p.ld",
|
|
"extra-files": [
|
|
"targets/avr.S",
|
|
"src/device/avr/atmega328p.s"
|
|
],
|
|
"emulator": ["simavr", "-m", "atmega328p", "-f", "16000000"]
|
|
}
|