tinygo/targets/digispark.json
Ayke van Laethem 66afcb3b39 avr: pass the correct -mmcu flag to the linker
It does not appear to be necessary for these devices but might result in
more appropriate libraries to be linked in.

It is best to _not_ specify the exact MCU because otherwise a few other
settings (such as startfiles and some linker script configs) also get
set, which we do manually anyway and should not be interfered with.

I discovered this while working on support for the atmega1284.
2020-03-17 14:46:56 +01:00

21 строка
517 Б
JSON

{
"inherits": ["avr"],
"llvm-target": "avr-atmel-none",
"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"]
}