pub/USBaspLoader.git
12 years agofix: do not ignore "USBASP_FUNC_SETISPSCK"
Stephan Baerwolf [Sat, 25 Aug 2012 12:43:17 +0000 (14:43 +0200)]
fix: do not ignore "USBASP_FUNC_SETISPSCK"

Some usbasp supporting software runs into trouble (or at least
raises error-reports), complaining not be able to set the right
isp-speed.
Because esp. windows-software seems to be a little bit sensitive.
this patch enables USBaspLoader to ignore this cmd. properly.

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
12 years agoadd some information into spminterface regarding the do_spm
Stephan Baerwolf [Sat, 25 Aug 2012 12:39:34 +0000 (14:39 +0200)]
add some information into spminterface regarding the do_spm

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
12 years agofix typos and shring do_spm to gain 4 bytes flash
Stephan Baerwolf [Sat, 25 Aug 2012 12:34:39 +0000 (14:34 +0200)]
fix typos and shring do_spm to gain 4 bytes flash

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
12 years agoinclude missing boot.h into bootloader
Stephan Baerwolf [Sat, 25 Aug 2012 11:47:52 +0000 (13:47 +0200)]
include missing boot.h into bootloader

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
12 years agoadd additional USBasp-Commands
Stephan Baerwolf [Sat, 25 Aug 2012 11:32:49 +0000 (13:32 +0200)]
add additional USBasp-Commands

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
12 years agoUSBaspLoader third stable release v0.3 v0.3
Stephan Baerwolf [Mon, 20 Aug 2012 00:10:03 +0000 (02:10 +0200)]
USBaspLoader third stable release v0.3

Precompiled bootloader v0.3 for atmeg8, clocked with 16 MHz

sha1sums are
44e5eed113987029bc90c3b2ce6651d09ef8d090  "raw bytecode"
81c656d1498efdcec616a53a12e2edd60ed2deb7  "elf firmware"
fb2623c618cd4b541e421d0e48c62ed27dd7fec5  "hexfile"

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
12 years agoUpdate Makefile for firmware-install
Stephan Baerwolf [Mon, 20 Aug 2012 00:08:45 +0000 (02:08 +0200)]
Update Makefile for firmware-install

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
12 years agoextend "spminterface.h" by implementing "do_spm"
Stephan Baerwolf [Sun, 19 Aug 2012 23:55:38 +0000 (01:55 +0200)]
extend "spminterface.h" by implementing "do_spm"

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoUSBasp second stable release v0.2 2010-07-27-stephan-201208041315 v0.2
Stephan Bärwolf [Sat, 4 Aug 2012 11:04:35 +0000 (13:04 +0200)]
USBasp second stable release v0.2

Signed-off-by: Stephan Bärwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoadd device-signature for my atmega1284p
Stephan Bärwolf [Sat, 4 Aug 2012 11:01:52 +0000 (13:01 +0200)]
add device-signature for my atmega1284p

Signed-off-by: Stephan Bärwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agointroduce spminterace capabilities for new devices (untested, yet)
Stephan Bärwolf [Sat, 4 Aug 2012 10:56:38 +0000 (12:56 +0200)]
introduce spminterace capabilities for new devices (untested, yet)

Because of the same register-ids the actual code could be dupicated
to following devices:

ATmega48
ATmega48P
ATmega88
ATmega88P
ATmega168
ATmega168P

ATmega48A
ATmega48PA
ATmega88A
ATmega88PA
ATmega168A
ATmega168PA
ATmega328
ATmega328P

ATmega164A
ATmega164PA
ATmega324A
ATmega324PA
ATmega644A
ATmega644PA
ATmega1284
ATmega1284P

Signed-off-by: Stephan Bärwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoFIX: fix some fuse-settings, correct some typos within spminterface
Stephan Bärwolf [Sat, 4 Aug 2012 10:08:19 +0000 (12:08 +0200)]
FIX: fix some fuse-settings, correct some typos within spminterface

Signed-off-by: Stephan Bärwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoUSBasp first stable release v0.1 2010-07-27-stephan-201208020130 v0.1
Stephan Baerwolf [Wed, 1 Aug 2012 23:21:09 +0000 (23:21 +0000)]
USBasp first stable release v0.1

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoBUGfix: fix lost bootloader-writeprotection via "HAVE_BLB11_SOFTW_LOCKBIT"
Stephan Baerwolf [Wed, 1 Aug 2012 23:13:49 +0000 (01:13 +0200)]
BUGfix: fix lost bootloader-writeprotection via "HAVE_BLB11_SOFTW_LOCKBIT"

Since via commit 75d2c2e6cf042deafe21b0e9a299c2b6091fd62b this
feature was accidently removed together with the removal of
"HAVE_BLB11_SOFTW_BACKDOOR".

This patch reverts this situation

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agooptimize: this changes logik from commit c99e4b0f4e8dc636060fca152df271298caa8342...
Stephan Baerwolf [Wed, 1 Aug 2012 23:11:54 +0000 (01:11 +0200)]
optimize: this changes logik from commit c99e4b0f4e8dc636060fca152df271298caa8342 to save bytes

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoimprove "bootloader__do_spm"
Stephan Baerwolf [Wed, 1 Aug 2012 22:26:47 +0000 (00:26 +0200)]
improve "bootloader__do_spm"

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agochange interface function "bootloader__so_spm" to avoid application crashes
Stephan Baerwolf [Wed, 1 Aug 2012 21:37:14 +0000 (23:37 +0200)]
change interface function "bootloader__so_spm" to avoid application crashes

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agomake bootloader able to cope with different watchdog settings 2010-07-27-stephan-201208012130
Stephan Baerwolf [Wed, 1 Aug 2012 19:16:51 +0000 (21:16 +0200)]
make bootloader able to cope with different watchdog settings

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoBUGfix: fix a very deadly typo 2010-07-27-stephan-201208011745
Stephan Baerwolf [Wed, 1 Aug 2012 15:40:18 +0000 (17:40 +0200)]
BUGfix: fix a very deadly typo

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agomake "bootloader__do_spm()" ready to go into production... 2010-07-27-stephan-201208011730
Stephan Baerwolf [Wed, 1 Aug 2012 15:28:10 +0000 (17:28 +0200)]
make "bootloader__do_spm()" ready to go into production...

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoremove the backdoor since it is too hard to use
Stephan Baerwolf [Wed, 1 Aug 2012 12:57:10 +0000 (14:57 +0200)]
remove the backdoor since it is too hard to use

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agofix: always use full features 2010-07-27-stephan-201207312045
Stephan Baerwolf [Tue, 31 Jul 2012 18:45:37 +0000 (18:45 +0000)]
fix: always use full features

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agodonor the free bytes to "bootloader__do_spm" 2010-07-27-stephan-201207312030
Stephan Baerwolf [Tue, 31 Jul 2012 18:10:19 +0000 (20:10 +0200)]
donor the free bytes to "bootloader__do_spm"

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agobugfix: fix wrong pageerase an even save some more bytes
Stephan Baerwolf [Tue, 31 Jul 2012 18:08:32 +0000 (20:08 +0200)]
bugfix: fix wrong pageerase an even save some more bytes

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agouse the gained byte for improving "bootloader__do_spm"
Stephan Baerwolf [Tue, 31 Jul 2012 17:02:52 +0000 (19:02 +0200)]
use the gained byte for improving "bootloader__do_spm"

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agooptimize: reorder pageerase to gain some bytes
Stephan Baerwolf [Tue, 31 Jul 2012 17:00:13 +0000 (19:00 +0200)]
optimize: reorder pageerase to gain some bytes

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agorename feature "HAVE_STMOPCODE_TUNNELCMD" into "HAVE_DOSPM_TUNNELCMD" (since I forgot...
Stephan Baerwolf [Tue, 31 Jul 2012 16:55:23 +0000 (18:55 +0200)]
rename feature "HAVE_STMOPCODE_TUNNELCMD" into "HAVE_DOSPM_TUNNELCMD" (since I forgot to update bootloaderconfig.h)

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoadd new feature "HAVE_STMOPCODE_TUNNELCMD" (bootloader__do_spm)
Stephan Baerwolf [Tue, 31 Jul 2012 16:44:05 +0000 (18:44 +0200)]
add new feature "HAVE_STMOPCODE_TUNNELCMD" (bootloader__do_spm)

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agooptimize: found a great source of optimization - however "BOOTLOADER_ADDRESS" must...
Stephan Baerwolf [Tue, 31 Jul 2012 15:34:58 +0000 (17:34 +0200)]
optimize: found a great source of optimization - however "BOOTLOADER_ADDRESS" must be page-aligned

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agooptimize: ah, found another 4 bytes to save
Stephan Baerwolf [Tue, 31 Jul 2012 15:05:14 +0000 (17:05 +0200)]
optimize: ah, found another 4 bytes to save

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agooptimize: again spare some bytes by removing unneccessary code
Stephan Baerwolf [Tue, 31 Jul 2012 15:01:45 +0000 (17:01 +0200)]
optimize: again spare some bytes by removing unneccessary code

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agointroducing more optimized code with the ability (backdoor) to update BLS 2010-07-27-stephan-201207311515
Stephan Baerwolf [Tue, 31 Jul 2012 13:04:47 +0000 (15:04 +0200)]
introducing more optimized code with the ability (backdoor) to update BLS

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoimprove exit logik by debouncing both: press and release of JUMPER
Stephan Baerwolf [Tue, 31 Jul 2012 12:06:21 +0000 (14:06 +0200)]
improve exit logik by debouncing both: press and release of JUMPER

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agooptimize HAVE_BLB11_SOFTW_LOCKBIT with local variable to save some code
Stephan Baerwolf [Tue, 31 Jul 2012 12:03:21 +0000 (14:03 +0200)]
optimize HAVE_BLB11_SOFTW_LOCKBIT with local variable to save some code

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agobugfix bootloader exit logik 2010-07-27-stephan-201207311220
Stephan Baerwolf [Tue, 31 Jul 2012 09:55:18 +0000 (11:55 +0200)]
bugfix bootloader exit logik

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoupdate Schematics.txt for new JUMPER-Logik 2010-07-27-stephan-201207310030
Stephan Baerwolf [Mon, 30 Jul 2012 22:26:39 +0000 (22:26 +0000)]
update Schematics.txt for new JUMPER-Logik

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoBUGfix: use correct file for avr-size to get correct statistics
Stephan Baerwolf [Mon, 30 Jul 2012 22:22:58 +0000 (22:22 +0000)]
BUGfix: use correct file for avr-size to get correct statistics

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoimprove bootloader-exit logik
Stephan Baerwolf [Mon, 30 Jul 2012 22:21:12 +0000 (22:21 +0000)]
improve bootloader-exit logik

Do not wait until a user does one transaction. Just wait for a
repress of the JUMPER-Button.
Also: if there is a transaction going on - do NOT exit!

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoBUGfix: ensure model-depended serial commands are only applied to correct model
Stephan Baerwolf [Mon, 30 Jul 2012 21:43:45 +0000 (21:43 +0000)]
BUGfix: ensure model-depended serial commands are only applied to correct model

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoadd some Schematics information about new PIN-layout 2010-07-27-stephan-201207302330
Stephan Baerwolf [Mon, 30 Jul 2012 21:32:58 +0000 (21:32 +0000)]
add some Schematics information about new PIN-layout

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoupdate Makefile, standard-device now is atmega8 since it is the most common one
Stephan Baerwolf [Mon, 30 Jul 2012 21:21:13 +0000 (21:21 +0000)]
update Makefile, standard-device now is atmega8 since it is the most common one

There is also a new PIN-layout, which uses the most unusual PINs (AIN0/1) for
USB/JUMPER interconnection.

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoupdate new features
Stephan Baerwolf [Mon, 30 Jul 2012 21:12:38 +0000 (21:12 +0000)]
update new features

* Software overwrite protection (so no urgend need for BLB11 lockbit
* make USBAspLoader able to read lock-, lfuse- and hfusebit
* change JUMPER-logik to button-logik

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoat least keep an empty hexfiles directory
Stephan Baerwolf [Mon, 30 Jul 2012 21:08:35 +0000 (21:08 +0000)]
at least keep an empty hexfiles directory

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoupdate to new vusb version
Stephan Baerwolf [Mon, 30 Jul 2012 21:05:33 +0000 (21:05 +0000)]
update to new vusb version

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoremove precompiled firmwares
Stephan Baerwolf [Mon, 30 Jul 2012 21:04:29 +0000 (21:04 +0000)]
remove precompiled firmwares

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
13 years agoinitial fill repository with USBAspLoader version 2010-07-27 2010-07-27
Stephan Baerwolf [Mon, 30 Jul 2012 20:44:20 +0000 (20:44 +0000)]
initial fill repository with USBAspLoader version 2010-07-27

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>