
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.
20 строки
483 Б
JSON
20 строки
483 Б
JSON
{
|
|
"inherits": ["avr"],
|
|
"cpu": "attiny85",
|
|
"build-tags": ["digispark", "attiny85", "attiny", "avr2", "avr25"],
|
|
"cflags": [
|
|
"-mmcu=attiny85"
|
|
],
|
|
"ldflags": [
|
|
"-mmcu=avr25",
|
|
"-Wl,--defsym=_bootloader_size=2180",
|
|
"-Wl,--defsym=_stack_size=128"
|
|
],
|
|
"linkerscript": "src/device/avr/attiny85.ld",
|
|
"extra-files": [
|
|
"targets/avr.S",
|
|
"src/device/avr/attiny85.s"
|
|
],
|
|
"flash-command": "micronucleus --run {hex}",
|
|
"emulator": ["simavr", "-m", "attiny85", "-f", "16000000"]
|
|
}
|