This repo contains a custom package_adafruit_index.json
file that can be used in Arduino IDE to use an recent compiler toolchain for nRF52.
After succesful installation you'll be able to use the Arm GNU Toolchain v13.2R1 (Okt 2023) based on GCC 13.2, instead of GCC v9 (2019) shipped with the default installation.
Just add https://raw.githubusercontent.com/zabuxx/arduino-board-index/gh-pages/package_adafruit_index.json as URL in Arduino IDE Settings for the 'Additional Boards Manager URLs'.
and add the "Adafruit nRF52" using board manager (uninstall it before if needed).
I've downloaded the latest version of the GNU Arm Embedded Toolchain Downloads, recompressed the .xd
files as .bz2
and modified package_adafruit_index.json
to use the latest compiler toolchain.
Only tested on x86_64-pc-linux-gnu, but should work on for Win/MacOS as well (open an issue if not). The binaries turn out 7~10% smaller in size with the new compiler, benchmarking is on todo list...
Apart from some (fixable) linker warnings seem to be working fine, but as always on this part of the show, no guarantees and use at your own risk...