Go Down

Topic: Remove USBCore to safe space (Read 2038 times) previous topic - next topic


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?


Aug 25, 2019, 06:15 pm Last Edit: Aug 25, 2019, 06:17 pm by Juraj
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


Aug 25, 2019, 06:24 pm Last Edit: Aug 25, 2019, 06:24 pm by timtailors
Thanks, I'll have a look.
I'm uploading over SWD ( I dont even have a USB socket on the board)

Go Up