Using the CLI, I am trying to compile a sketch for the Arduino Nano Every which uses the ATmega4809, but I want to disable ATmega328 register emulation.
When I run the command:
arduino-cli board details arduino:megaavr:nona4809
I get the following output:
Board name: Arduino Nano Every
Required tools: arduino:avr-gcc 7.3.0-atmel3.6.1-arduino5
arduino:avrdude 6.3.0-arduino17
arduino:arduinoOTA 1.3.0
Option: Registers emulation mode
ATMEGA328 ✔ mode=on
None (ATMEGA4809) mode=off
I do not want to use the "ATMEGA328 Register emulation" which is checked in this output and makes me think that is the default.
During compilation, and potentially upload, how do I turn that off via command line? It's easy to do in the IDE, but I'm not using the IDE.