From 09094305bdd706563dffa6a6bd1d38c6dd2931da Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Wed, 1 Dec 2021 16:09:54 +0100 Subject: [PATCH 1/2] Add submenu for 16 / 20Mhz This change allows to run Nano Every at full speed, i.e. 20Mhz. It sets the right FUSE flags and CPU frequency macros - as already suggested by several people (for example https://forum.arduino.cc/t/clock-speed-for-nano-every/599449/7). If I understand correctly, this may or may not work with people's projects - any way we should allow people to give it a try. After all, one strength of the arduino platform is that it's "open for hacking' ;-). --- boards.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/boards.txt b/boards.txt index e5ca54b6..d8db4569 100644 --- a/boards.txt +++ b/boards.txt @@ -86,4 +86,13 @@ nona4809.menu.mode.on.build.328emulation=-DAVR_NANO_4809_328MODE nona4809.menu.mode.off=None (ATMEGA4809) nona4809.menu.mode.off.build.328emulation= +## Allow users to try out their Nano Every at 20Mhz. +## experiental - may (or may not) have incompabilities wr.r.t other features of megaCore. +menu.clock=Clock Speed +nona4809.menu.clock.16internal=16MHz (default) +nona4809.menu.clock.16internal.build.f_cpu=16000000L +nona4809.menu.clock.16internal.bootloader.OSCCFG=0x01 +nona4809.menu.clock.20internal=20MHz (experimental) +nona4809.menu.clock.20internal.build.f_cpu=20000000L +nona4809.menu.clock.20internal.bootloader.OSCCFG=0x02 ############################################################## From 801fd42146fb9eb78a11dc33347538951ce7b226 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Wed, 1 Dec 2021 16:11:03 +0100 Subject: [PATCH 2/2] small correction --- boards.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards.txt b/boards.txt index d8db4569..c85d6834 100644 --- a/boards.txt +++ b/boards.txt @@ -87,7 +87,7 @@ nona4809.menu.mode.off=None (ATMEGA4809) nona4809.menu.mode.off.build.328emulation= ## Allow users to try out their Nano Every at 20Mhz. -## experiental - may (or may not) have incompabilities wr.r.t other features of megaCore. +## experiental - may (or may not) have incompabilities wr.r.t other features of megaavr core. menu.clock=Clock Speed nona4809.menu.clock.16internal=16MHz (default) nona4809.menu.clock.16internal.build.f_cpu=16000000L