tinygo/targets/atmega1284p.json
Ayke van Laethem 854092c7bc avr: add emulator to atmega1284p
Somehow I forgot to add this emulator. With this, you can easily emulate
programs:

    $ tinygo run -target=atmega1284p examples/serial
    Loaded 698 .text at address 0x0
    Loaded 12 .data
    hello world!..
    hello world!..
    hello world!..
2020-03-22 11:45:03 +01:00

20 строки
528 Б
JSON

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