ATmega8 bootloader

Jan 04, 2008 2 Replies

Hello All!



HÁÂңÌ ÔÕÔ × ÐÏÉÓËÁÈ ÎÁ ×ÅÓØÍÁ ÐÒÉÍÅÞÁÔÅÌØÎÙÊ subj, ÒÅËÏÍÅÎÄÕÀ:



=== Cut ===

formatting link
[...]



What is the history behind this piece of software?



Atmel has published a bootloader written in C language in their application note AVR109. It is written using the IAR C compiler which is not free, so it is not available to everyone. The application note itself is well written and worth reading. It can be found at

formatting link



On

formatting link
there is design note (#32) which describes a bootloader written in assembly for the ATmega163. It even has an counter implemented in the devices EEPROM to count the number of flash erases. However this software is not directly applicable to the most widely used AVR processor, the ATmega8. This software was used as a basis for the bootloader that is published here. The main advances are:



check implemented to access the flash only after the last task was completed re-enabling the application section after it was reprogrammed by the bootloader interface sync-losses between AVRProg1.37 and the bootloader solved by implementing required commands that were missing startup code section that waits for 8 seconds for bootloader commands and starts the application if no commands are received (this makes it possible to use solely RXD and TXD lines on the RS232 for software upload, no further lines are required) Usage of "universal command" by AVRProg1.37 with regard to fuse/lock bit reading conquered to make things work code is well documented now, every block and every line is exactly explained (this simplifies adaptations to individual requirements)



[...]

=== Cut ===


ðÒÉ×ÅÔ, Alexander !

04 Jan 08 , 17:42 Alexander Konosevich ÐÉÓÁÌ Ë All:

AK> HÁÂңÌ ÔÕÔ × ÐÏÉÓËÁÈ ÎÁ ×ÅÓØÍÁ ÐÒÉÍÅÞÁÔÅÌØÎÙÊ subj, ÒÅËÏÍÅÎÄÕÀ:

÷ ÐÏÉÓËÁÈ - ÜÔÏ × ÐÏÌÎÏÍ ÍÁÎÕÁÌÅ ÎÁ ÍÅÇÁ8?

. ó Õ×ÁÖÅÎÉÅÍ, HÉËÉÔÁ. icq:240059686, lj-user:nicka_startcev ... ÄÏÌÖÎÏÓÔØ ÐÒÉÄ×ÏÒÎÏÇÏ ÂÕÛÍÅÊÓÔÅÒÁ ÎÅ ÚÁÎÉÍÁÌ

Hello Nickita A Startcev!

AK>> HÁÂңÌ ÔÕÔ × ÐÏÉÓËÁÈ ÎÁ ×ÅÓØÍÁ ÐÒÉÍÅÞÁÔÅÌØÎÙÊ subj, ÒÅËÏÍÅÎÄÕÀ: NS> ÷ ÐÏÉÓËÁÈ - ÜÔÏ × ÐÏÌÎÏÍ ÍÁÎÕÁÌÅ ÎÁ ÍÅÇÁ8?

"ðÏÍÏÌÞÉ - ÇÌÑÄÉÛØ, É ÚÁ ÕÍÎÏÇÏ ÓÏÊģÛØ ..." (Ã)

formatting link
PS2ALL: ÕÐÏÍÑÎÕÔÙÊ ×ÙÛÅ ÂÕÔÌÏÁÄÅÒ "ÐÒÉËÉÄÙ×ÁÅÔÓÑ" *ÓÔÁÎÄÁÒÔÎÙÍ* ÐÒÏÇÒÁÍÍÁÔÏÒÏÍ AVReal ÎÁ RS232/etc, ÞÔÏ ÉÍÈÏ ÂÙ×ÁÅÔ *×ÅÓØÍÁ* ÐÏÌÅÚÎÏ ... ;)

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required