Stephan Baerwolf [Sun, 18 Nov 2012 12:11:39 +0000 (13:11 +0100)]
optimize code to save some bytes
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sun, 18 Nov 2012 11:10:40 +0000 (12:10 +0100)]
improve feature autoselection and make it more granular
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sat, 17 Nov 2012 23:29:26 +0000 (00:29 +0100)]
new feature "HAVE_FLASH_BYTE_READACCESS" to fix read bug in avrdude terminal
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sat, 17 Nov 2012 19:44:54 +0000 (20:44 +0100)]
BUG: fix way accessing flash-memory, esp. on devices >64k
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sat, 17 Nov 2012 18:39:59 +0000 (19:39 +0100)]
BUG: fix bogous "HAVE_EEPROM_BYTE_ACCESS" feature which may corrupt bootloader
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Fri, 16 Nov 2012 20:13:54 +0000 (21:13 +0100)]
BUG: fix flash read error on atmegas with more than 64k memory
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Wed, 14 Nov 2012 23:21:05 +0000 (23:21 +0000)]
Revert "save some more memory in case "BOOTLOADER_CAN_EXIT" is deactivated"
This patch make the bootloader unable to execute any user-flashed firmware.
Because "BOOTLOADER_CAN_EXIT" is an essential feature for smaller MCUs,
this patch will be reverted instantly.
New version is v0.9.1 - checksums of precompiles stay the same
Sorry for the inconvenience,
Stephan Baerwolf (stephan.baerwolf@tu-ilmenau.de)
This reverts commit
2ca9a19cd19c152ec45d920994a4c64c94d4b3f5.
Stephan Baerwolf [Wed, 14 Nov 2012 20:49:06 +0000 (21:49 +0100)]
USBaspLoader ninth stable release v0.9
Precompiled bootloader v0.9 for atmega8,
default schematics clocked with 16 MHz
(other AVRs are not tested, yet! But please report!)
sha1sums are:
8ef75381260d96e293459928672ae7c91d72e4d8 "raw bytecode usbasp"
bc474208902fa2e7990ac3caeb63c8a110af9908 "raw bytecode update"
4551457aca286497570a3f4e4834cb066331106c "elf firmware usbasp"
932654a06a6365c5e70c0c8e13acf0fb02a7bfee "elf firmware update"
621512d5de6cc958f0e2ca14a5718cbcb184ea34 firmware_usbasploader.hex
5a4f75bb7859e6e1e023d6409b9e4117f93d8973 update_usbasploader.hex
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Wed, 14 Nov 2012 20:40:25 +0000 (21:40 +0100)]
new feature: HAVE_SPMINTEREFACE_NORETMAGIC
If sth. went wrong within "bootloader__do_spm" and this macro is ACTIVATED,
then "bootloader__do_spm" will not return the call and loop infinity instead.
This feature prevents old updaters to do sth. undefined on wrong magic.
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Wed, 14 Nov 2012 20:00:16 +0000 (21:00 +0100)]
add and extend fuse-bit settings
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Wed, 14 Nov 2012 17:54:59 +0000 (18:54 +0100)]
modify main.c for adding "atmega324pa" support
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Wed, 14 Nov 2012 14:56:44 +0000 (15:56 +0100)]
introduce new feature "HAVE_SPMINTEREFACE_MAGICVALUE" - adapt all asm-funcs
If this feature is enabled (value != 0), the configured 32bit value is
used as a magic value within spminterface. "bootloader__do_spm" will check
additional four (4) registers for this value and only proceed, if they contain
the right value. With this feature you can identify your board and avoid
updating the wrong bootloader to the wrong board!
Not all values are possible - "SPMINTEREFACE_MAGICVALUE" must be very sparse!
To avoid collisions, magic-values will be organized centrally by Stephan
Following values are definitly blocked or reserved and must not be used:
0x00000000, 0x12345678,
0x00a500a5, 0x00a5a500, 0xa50000a5, 0xa500a500,
0x005a005a, 0x005a5a00, 0x5a00005a, 0x5a005a00,
0x5aa55aa5, 0x5aa5a55a, 0xa55a5aa5, 0xa55aa55a,
0x5a5a5a5a, 0xa5a5a5a5,
0xffa5ffa5, 0xffa5a5ff, 0xa5ffffa5, 0xa5ffa5ff,
0xff5aff5a, 0xff5a5aff, 0x5affff5a, 0x5aff5aff,
0x00ff00ff, 0x00ffff00, 0xff0000ff, 0xff00ff00,
0xffffffff
To request your own magic, please send at least following information
about yourself and your board together within an informal request to:
stephan@matrixstorm.com / matrixstorm@gmx.de / stephan.baerwolf@tu-ilmenau.de
- your name
- your e-mail
- your project (maybe an url?)
- your type of MCU used
--> your used "BOOTLOADER_ADDRESS" (since same magics can be reused for different "BOOTLOADER_ADDRESS")
There may be no garanty for it, but Stephan will then send you an
response with a "SPMINTEREFACE_MAGICVALUE" just for your board/project...
WITH REQUESTING A MAGIC YOU AGREE TO PUBLISHED YOUR DATA SEND WITHIN THE REQUEST
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Wed, 14 Nov 2012 00:04:02 +0000 (01:04 +0100)]
optimize and extend updater.c
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 13 Nov 2012 17:25:48 +0000 (18:25 +0100)]
new feature "HAVE_UNPRECISEWAIT" for save some flash
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 13 Nov 2012 17:10:10 +0000 (18:10 +0100)]
optimize initForUsbConnectivity
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 13 Nov 2012 17:07:03 +0000 (18:07 +0100)]
save some more memory in case "BOOTLOADER_CAN_EXIT" is deactivated
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 13 Nov 2012 17:00:24 +0000 (18:00 +0100)]
BUG: fix updater Makefile (rulde "usbasploader.raw:")
objectcopy (OBC) from raw to object needs command line parameter "-B <avr-architecture>"
In case of atmega1284p this arch is avr51 and not avr4X so it will crash in version v0.85.
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 13 Nov 2012 16:58:25 +0000 (17:58 +0100)]
BUG: fix __do_spm_Ex (spminterface.h) on architecture avr51 (atmega1284p)
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sat, 10 Nov 2012 11:17:08 +0000 (12:17 +0100)]
USBaspLoader eigth and a half stable release v0.85
Precompiled bootloader v0.85 for atmega8
(tinyUSBboard - http://matrixstorm.com/avr/tinyusbboard/),
default schematics clocked with 16 MHz
(other AVRs are not tested, yet! But please report!)
sha1sums are:
ad3cb7c0a594d31e4abe5d812f86b23ad7880ff4 "raw bytecode usbasp"
043ac00cb3d46879b8155638b1e8413e65628d7c "raw bytecode update"
b54c99379b0fc7296664025926ed021e856c5216 "elf firmware usbasp"
483a69e4797ea8f1eb7f7b1d8cefabbe020e137c "elf firmware update"
51f5dd636f5f39b59aa6f2b23ef43eb8b2bbc3ff firmware_usbasploader.hex
d1e224b0b766ee22c92871f813f2bcd2fc5dfa97 update_usbasploader.hex
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sat, 10 Nov 2012 10:55:06 +0000 (11:55 +0100)]
minimize code and improve autoselection
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sat, 10 Nov 2012 10:15:21 +0000 (11:15 +0100)]
have updater check HAVE_SPMINTEREFACE and raise error if not supported
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sat, 10 Nov 2012 09:59:11 +0000 (10:59 +0100)]
Clean up and add new features
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sat, 10 Nov 2012 09:08:16 +0000 (10:08 +0100)]
fix some reported issues by improving Makefile
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sat, 10 Nov 2012 08:26:31 +0000 (09:26 +0100)]
remove "hexfiles"-residuals in firmware/Makefile
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Sat, 10 Nov 2012 08:23:13 +0000 (09:23 +0100)]
Fix typo and add tinyUSBboard webpage to Readme
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 2 Oct 2012 21:49:21 +0000 (23:49 +0200)]
USBaspLoader eigth stable release v0.8
Precompiled bootloader v0.8 for atmega8 (tinyUSBboard),
default schematics clocked with 16 MHz
(other AVRs are not tested, yet! But please report!)
sha1sums are:
f13ec61258c3a11d7e8a129875dbe3f48546579a "raw bytecode usbasp"
f7a2524e959d606bffb3e1de73e4b099dfe04f79 "raw bytecode update"
4df83112116c07001573449cb608ca0b1c0ea30e "elf firmware usbasp"
0dea0844baf020e8fb731bfdcb50e1a52d480e3b "elf firmware update"
87746dc787761b5b904490229ef9a6b406c303cb firmware_usbasploader.hex
8fa38659559525fc171c147808404a5d8d3afb03 update_usbasploader.hex
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 2 Oct 2012 21:37:00 +0000 (23:37 +0200)]
It is high time to do some changes to the "Readme.txt"-file
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 2 Oct 2012 21:22:54 +0000 (23:22 +0200)]
add automatic "BOOTLOADER_ADDRESS" selection to Makefile.inc
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 2 Oct 2012 21:06:51 +0000 (23:06 +0200)]
cleanup and beautify Makefile.inc plus additional fusebit-selection-automatic
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 2 Oct 2012 20:33:34 +0000 (22:33 +0200)]
extend "spminterface.h" for support of ATmega128
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 2 Oct 2012 19:20:36 +0000 (21:20 +0200)]
extend "spminterface.h" for support of ATmega328 and ATmega328p
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Stephan Baerwolf [Tue, 2 Oct 2012 19:07:34 +0000 (21:07 +0200)]
mark ATmega48 as unsupported
Since ATmega48 (as also ATmega48A, ATmega48P and ATmega48PA) only has
4kb of FLASH and does not support bootloader by hardware, it is
improper for USBaspLoader and marked as unsopported.
While the sourcecode remains with parts for ATmega48 (in case there are
some know hacks to make it work), main.c will raise compiler-error in
case of usage.
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
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>