Download Latest Version a-boot_2_1.7z (56.7 kB)
Email in envelope

Get an email when there's a new version of A-boot: Atmel serial bootloader

Home
Name Modified Size InfoDownloads / Week
README.txt 2013-08-02 2.5 kB
a-boot_2_1.7z 2013-08-02 56.7 kB
a-boot_2_0.7z 2013-07-23 49.1 kB
Totals: 3 Items   108.3 kB 0
ABOUT THIS PROJECT
------------------
A-boot is open source bootloader for Atmel AVR devices. It is written in C and Atmel AVR studio 6.1 was used to compile it.
Programmer is written in plain C without use of any additional libraries and was compiled with Tiny C Compiler (TCC) found at www.tinycc.org. Should be able to compile with any compiler available.

Main disadvantages of available bootloaders (at least for me):
-	Receiving loop is expecting correct data, if data is corrupted - watchdog reset will reset the chip and all process should be started from the beginning;
-	They can't handle different timeouts (for example, Ethernet-to-serial converter used for uploading; RS-485 usually will require some timeouts adjustment too);
-	To check the file after uploading, it needs to be read back - takes too much time and again, can be corrupted.

Main features of my bootloader:
-	Interrupts driven: no dead loops, adjustable timeouts;
-	If data block was corrupted it is possible to send it again and continue uploading;
-	No need to read the whole file to check it - there is built in CRC check function. It can also be used in main application for testing flash memory before running the program;
-	Optional encryption with TEA algorithm;
-	Total size - not more than 2 kB (including encryption).



HOW TO BUILD SOURCES
--------------------
Use Atmel AVR studio with GCC (ver 6.1 was used to build), project file included.
Dont forget to adjust things specific to your board (SpecificCode.h).
UART settings are not handled by global macros at the moment, so depends on your system clock adjust settings as needed(will be fixed eventually).

To build programmer with TCC use "build.bat" provided. Examples of usage are in help-message and in "test.bat".


LICENSE
---------------------
GPL



REALEASES INFORMATION
---------------------
Current release is still experimental. Many planned features are not implemented.

18.05.13
No changes made to code, just files structure adjust.

16.05.13
First release

23.07.13
Latest recommended version is 2.0.
All settings are in Settings.h file, macros based. Target setup based on compiler settings.
Entering the a-boot is fixed: now there is adjustable time to wait for serial command or button press. After timeout the main application is started.
---------------------
25.07.13
Updated CodeLoader to achieve uploading through Bluetooth (PROGRAMMER Readme).
Source: README.txt, updated 2013-08-02