Stephan Baerwolf [Tue, 2 Oct 2012 19:03:46 +0000 (21:03 +0200)]
extend "spminterface.h" for support of multiple ATmegas
devices are:
ATmega164A, ATmega164P, ATmega164PA,
ATmega324A, ATmega324P, ATmega324PA,
ATmega644, ATmega644A, ATmega644P, ATmega644PA,
ATmega1284, ATmega1284P
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 2 Oct 2012 17:18:49 +0000 (19:18 +0200)]
extend "spminterface.h" for support of atmega88 and atmega168
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 2 Oct 2012 16:11:29 +0000 (18:11 +0200)]
extend "spminterface.h" for support of atmega32
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 2 Oct 2012 15:51:13 +0000 (17:51 +0200)]
extend "spminterface.h" to additional checks on "BOOTLOADER_ADDRESS" (atmega8)
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 2 Oct 2012 15:39:09 +0000 (17:39 +0200)]
extend support of "HAVE_READ_LOCK_FUSE" to more devices
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 2 Oct 2012 15:05:46 +0000 (17:05 +0200)]
add new device-signatures to main.c
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 2 Oct 2012 14:00:57 +0000 (16:00 +0200)]
fix incorrect definition within header-file
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sun, 30 Sep 2012 10:15:45 +0000 (12:15 +0200)]
deactivate include of <avr/cpufunc.h> for toolchain compatibility
Since cpufunc.h is not needed in the context of primary firmware
and since it is not available in all toolchains, the include
of <avr/cpufunc.h> becomes deactivated by github issue-report.
(In case of trouble it remains in sourcecode for reactivation.)
The autor would like to thank Lena-M for reporting this
issue (https://github.com/baerwolf/USBaspLoader/issues/1).
Reported-by: Lena-M
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Mon, 17 Sep 2012 23:28:16 +0000 (01:28 +0200)]
USBaspLoader seventh stable release v0.7
Precompiled bootloader v0.7 for atmega8,
default schematics clocked with 16 MHz
(other AVRs are not tested, yet!)
sha1sums are:
0dfaf6ce84b8b5689f82fcb2e80e454242b3c31a "raw bytecode usbasp"
c4628ccdc95915a9086ac582dfe359e38e94edc8 "raw bytecode update"
6f23f7d22729c52bd98ca7536bcec573cbb3ea96 "elf firmware usbasp"
847ff96ddfab1d03e400c021fe7bbaf995052eee "elf firmware update"
b2c619f607e442599d2980c0a81c88c1165a48a2 firmware_usbasploader.hex
e063c01ca98677d39a64130e9ab1fc19c43a5b77 update_usbasploader.hex
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Mon, 17 Sep 2012 21:47:38 +0000 (23:47 +0200)]
Since build process has changed, there is no need for firmware_gen anymore
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Mon, 17 Sep 2012 21:44:37 +0000 (23:44 +0200)]
change the build-process of the updater (do some linker magic)
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Mon, 17 Sep 2012 21:39:28 +0000 (23:39 +0200)]
Change the activity of different code-snipeds and macros
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Mon, 17 Sep 2012 17:53:22 +0000 (17:53 +0000)]
Finally a correct and translated schematics recommendation
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Mon, 17 Sep 2012 17:22:49 +0000 (17:22 +0000)]
fix environmental and configuration issues within Makefile.inc
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Mon, 17 Sep 2012 17:18:53 +0000 (17:18 +0000)]
fix dynamic "$(RM)" use instead of direct "rm -f" command
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Thu, 13 Sep 2012 20:54:51 +0000 (20:54 +0000)]
USBaspLoader sixth stable release v0.6
Precompiled bootloader v0.6 for atmega8, clocked with 16 MHz
(other AVRs are not tested, yet!)
sha1sums are:
a462027250f00f6de43542df38bc48c736cc3766 "raw bytecode usbasp"
2eda9e8b010f8211584f13bdc0817fbb6c591047 "raw bytecode update"
c828378fc94ba2a4d11012a7cc74360ac54ec700 "elf firmware usbasp"
90872f3fe06af23103a6dad47aaddbf5cd2bb0df "elf firmware update"
1182e44819afe82b530fdf34ac90632b979b551a firmware_usbasploader.hex
6903d9a8682dbe497aa319833a6baeac27feccb6 update_usbasploader.hex
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Thu, 13 Sep 2012 20:21:35 +0000 (22:21 +0200)]
update old information within Schematics
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Thu, 13 Sep 2012 20:18:05 +0000 (22:18 +0200)]
make spminterface.h more robust against different gcc-optimizations
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Thu, 13 Sep 2012 20:13:38 +0000 (22:13 +0200)]
fix missing include within generated firmware-header
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Thu, 13 Sep 2012 19:29:50 +0000 (21:29 +0200)]
pimp Makefiles to use more global settings
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Thu, 13 Sep 2012 19:09:07 +0000 (21:09 +0200)]
adapt usbdrv to cope with newer toolchains and fit into new rfcs
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sun, 2 Sep 2012 11:59:21 +0000 (13:59 +0200)]
USBaspLoader fifth stable release v0.5
Precompiled bootloader v0.5 for atmeg8, clocked with 16 MHz
(other AVRs are not tested, yet!)
sha1sums are:
d25cb49772df67af36b193d9203bd148b5842a66 "raw bytecode usbasp"
82ae14e42227bce54a53a90cc16e8e7a3f203501 "raw bytecode update"
5585f82b552921cd032021d91e78eee6d9912f08 "elf firmware usbasp"
794299f8bb6b8de77cb4d12571d69b5a990467c0 "elf firmware update"
b9b685fdfde0b6ed46393656b3b874d6b174b2c3 firmware_usbasploader.hex
ba8a7910e56d126c7e31a0003c4fd91477e4ce7c update_usbasploader.hex
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sun, 2 Sep 2012 11:30:23 +0000 (13:30 +0200)]
introduce first updater-functionalities using the do_spm
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sat, 1 Sep 2012 16:25:27 +0000 (18:25 +0200)]
Adapt firmware-Makefile to make use of global ones
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sat, 1 Sep 2012 16:24:44 +0000 (18:24 +0200)]
introduce global Makefiles
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Fri, 31 Aug 2012 05:56:48 +0000 (07:56 +0200)]
smpinterface fix: missing rampZ-write for atmega1284p
Since atmega1284p has 128kiB of flash and because SPM addresses bytes,
the usual 16bit addresses are not sufficient enough.
Althought "bootloader__do_spm" already supports 3byte adresses (r11-r13),
the write of r11 into rampZ was missing in the device-depended
maschine codepart.
This patch exchanges the already designed placeholder "NOP" with
an out-opcode writing r11 into rampZ.
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Thu, 30 Aug 2012 20:57:52 +0000 (22:57 +0200)]
beautify interfacing maschinecode
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sat, 25 Aug 2012 13:01:13 +0000 (15:01 +0200)]
USBaspLoader third stable release v0.4
Precompiled bootloader v0.4 for atmeg8, clocked with 16 MHz
sha1sums are
d25cb49772df67af36b193d9203bd148b5842a66 "raw bytecode"
5585f82b552921cd032021d91e78eee6d9912f08 "elf firmware"
f5bf7e595f3af2f3a634e330067a3712ec8e560d "hexfile"
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>