Arduino Forum

Products => Arduino Zero => Topic started by: timtailors on Aug 25, 2019, 06:05 pm

Title: Remove USBCore to safe space
Post by: timtailors on Aug 25, 2019, 06:05 pm
Hi in order to free some RAM space I figured out the there is a USB core which needs a lot of space:

2980 Bytes USBDeviceClass TOTAL

I dont use USB on my project that's using a ATSAMD21G18A and would like to remove the class

How can I do that?
Title: Re: Remove USBCore to safe space
Post by: Juraj on Aug 25, 2019, 06:15 pm
I guess it is the build.usb_flags in platform.txt. remove -DUSBCON.
to upload over USB you would need then activate the bootloader with a double reset
Title: Re: Remove USBCore to safe space
Post by: timtailors on Aug 25, 2019, 06:24 pm
Thanks, I'll have a look.
I'm uploading over SWD ( I dont even have a USB socket on the board)