baerwolf / USBaspLoader

An (V)USB bootloader firmware for AVR-MCUs emulating the popular USBasp for programming itself
Other
178 stars 146 forks source link

Current version exceeds 2kb size limit when compiled for 12 Mhz device #7

Closed cpldcpu closed 11 years ago

cpldcpu commented 11 years ago

It appears that the current version exceeds the 2kb size limit when F_CPU is set to 12000000 due to the larger size of the USB code. Is there any way this can be configured back to below 2kb?

baerwolf commented 11 years ago

This usual happens on older toolchains, since they produce suboptimal code.

Either try ATMELs recent toolchain (http://matrixstorm.com/avr/tinyusbboard/#asmorc) or edit Makefile.inc to reduce the number of features.

I recommend the first option.

If you need a default configuration I can compile you one.

Best regards, Stephan

cpldcpu commented 11 years ago

Thank you, that was indeed the issue! It seems that even the smaller versions were completely nonfunctional when compiled with winavr2010...