Go Down

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

timtailors

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?

Juraj

#1
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

timtailors

#2
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