
Instead of specifying the emulator command in atmega328p.json, specify it in the two boards based on it (arduino and arduino-nano). This makes the configuration consistent with the machine package, which only defines the CPUFrequency function in the board files (and not in machine_atmega328p.json).
10 строки
296 Б
JSON
10 строки
296 Б
JSON
{
|
|
"inherits": ["atmega328p"],
|
|
"build-tags": ["arduino"],
|
|
"ldflags": [
|
|
"-Wl,--defsym=_bootloader_size=512",
|
|
"-Wl,--defsym=_stack_size=512"
|
|
],
|
|
"flash-command": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}:i",
|
|
"emulator": ["simavr", "-m", "atmega328p", "-f", "16000000"]
|
|
}
|