mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 10:37:46 +00:00
aa3481e06a
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.
21 lines
483 B
JSON
21 lines
483 B
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"]
|
|
}
|