Welcome to the grown up programming world. Where you actually have to do programming.
Well, you are advanced programmer so you should know that it is nothing to do with "doing actual programming" – this example is simply not optimized for use of itself as a library.
Cos of minimum configuration issues I'm having with SAMD21 + I have to add extra chip for driving 5V Pfet I'm considering going back to STM32f103.
It's over 2 times cheaper + no extra chip due to 5V tolerant IO, it's also 1/3 faster (I need speed). As most likely I will have to role up my own bootloader/USB composite lib anyway I think this is a logical decision (I picked SAMD21 cos I hoped to avoid "real programming"
).
Bummer, what a waste, I was quite invested in SAMD21 (money and time wise). Oh well, I might get back to SAMD