Page 2 of 2
Posted: Thu Nov 27, 2008 8:08 pm
by ahulap
I have tested it (precompiled usbasp-mega8-12mhz.hex), and it works!
But one little thing left: USBasp have 2 LEDs, and green (PC0) is always off. Maybe set it on forever in hardwareInit()?
Posted: Thu Nov 27, 2008 8:26 pm
by christian
As far as I know, the green LED is not actually used by USBasp either. Since AVR-Doper does not have a status to display with this LED, we just leave it unconfigured.
Posted: Thu Nov 27, 2008 9:19 pm
by ahulap
Green led is used like "ON" indicator. But all who build USBasp and use your firmware will have a "dead" led, this does not look good... I have rebuild AVR-Doper firmware and turn it on.
Is there any way to compile USDasp-Doper for ATmega48, HID-only, without debug? I've got around 4.6 kbytes with avr-gcc 4.3.0 from WinAVR-20080610 package. Maybe avr-gcc 3.x.x will give smaller code, but i can't test it...
And almost forgot: current STK500 software version is 2.0A, AVRstudio will always ask about firmware upgrade. CDC mode works stable only on my laptop, so i use HID mode and don't care about version.
Posted: Sat Nov 29, 2008 11:08 pm
by christian
You can disable some functionality in hardware.h, just look at the first few defines.
The STK500v2 firmware version can be configured in stk500protocol.c, see defines for STK_VERSION_MAJOR and STK_VERSION_MINOR.