tinygo/targets/arduino.json
Ayke van Laethem 2a71aa90bc targets: refactor flash/gdb target configuration
Instead of specifying explicit commands, most of these commands have
been replaced by more specific properties.

This is work that will be necessary for an eventual -programmer flag to
the compiler, with which it is possible to select which programmer to
use to flash or debug a chip. That's not very useful for boards that
already include a programmer or bootloader for that purpose, but is very
useful for novel boards or single-purpose boards that are not already
included in TinyGo.
2019-10-14 16:44:33 +02:00

19 строки
463 Б
JSON

{
"inherits": ["avr"],
"llvm-target": "avr-atmel-none",
"cpu": "atmega328p",
"build-tags": ["arduino", "atmega328p", "atmega", "avr5"],
"cflags": [
"-mmcu=atmega328p"
],
"ldflags": [
"-Wl,--defsym=_bootloader_size=512",
"-Wl,--defsym=_stack_size=512",
"-T", "src/device/avr/atmega328p.ld"
],
"extra-files": [
"targets/avr.S",
"src/device/avr/atmega328p.s"
],
"flash-command": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}"
}