Firmware for SAMD11D14A in Arduino Nano Every compilation errors

Hi all,

I'm trying to rebuild the basic firmware for MuxTO (available in firmwares/MuxTO folder in megaavr core) but I'm not able to complete the compilation. Did anybody succeed?

I followed the instructions in Arduino Nano Every page and installed MattairTech SAMD Boards (version 1.6.6-mt2) using 'Boards Manager' and select MT-D11 (since it is a SAMD11) but several compilation errors appear.

It seems the Uart implementation in MattairTech distribution differs a lot from the one required in MuxTO.ino of Nano Every.

I received errors like:
MuxTO:65:22: error: 'class Uart' has no member named 'availableForWrite'

if (c > Serial.availableForWrite()) {

Are there any other instructions to compile this code?

My environment:

  • Arduino IDE 1.8.9
  • megaAVR version 1.83
  • MattairTech SAMD version 1.6.6-mt2
  • Windows 10

Thanks!

Has this issue been resolved? I did try compiling the MuxTO with the suggested settings specifiec by the top level Arduino INO file:

/*
Compile with
fqbn=arduino:samd:muxto:float=default,config=enabled,clock=internal_usb,timer=timer_732Hz,bootloader=4kb,serial=two_uart,usb=cdc
to obtain the binary for Serial-to-USB converter + UPDI programmer on the Arduino Nano Every (MuxTO for brevity)

Since the "sketch" is (almost) pure Arduino it can be ported easily to other architectures (on chips with two serial ports)
The bitbanged UPDI layer is being reworked to make it compatible with chips with just one UART (eg. atmega 32u4)
*/

The Error I am getting is the following:

./../arm-none-eabi/bin/ld.exe: region `FLASH' overflowed by 104 bytes

Any help or suggestions will be greatly appreciated!

Try setting the "Build Options: use config.h" option in the tools menu...

It makes me pretty uncomfortable that the firmware is so close to overflowing the available space :frowning:
Fortunately, there seem to be several obvious candidates for trimming...

(Huh: Does the Nano SAMD11 have a bootloader (ie firmware updateable without a programmer?) It's reserving 4k of space for one!)