Best Bootloader

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

for my new design i want to use a bootloader to make firmware updates easier. What is the best bootloader? I want to use the integrated uart for communication and best would be only Tx & Rx ( no handshake signals ). Is it possible to add LCD functionality to a bootloader to show the user a status bar or a message that the update is in progress?

Thanks

Hava a look at my web page -> http://www.tobiscorner.at.tf

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Most Bootloaders on the web are in source code format.

Thus any changes, which you want, can be done.

Furthermore the LPM functions are verbose described in the data sheet. So you can also write your own bootloader.

IMHO my bootloader is the best, because it is completely silent until the baudrate was calculated and the password was received.

Only a very small delay was added, after the reset.

It programs very fast, since data was sent in binary format.

To be sure, that the baudrate was correct determined and all data was correct sent, a CRC-16 check was done after programming.

It runs also reasonable fast over an USB/RS-232 converter because it sends in 512 byte packets but support still single byte changes (all other bytes of the same page are unchanged).

http://www.mikrocontroller.net/a...

Peter

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can i use the Include files for the Mega323 without problems for the Mega32?

Hava a look at my web page -> http://www.tobiscorner.at.tf

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Megaload works very good, and it's free too.
http://www.microsyl.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are bootloaders difficult to make? I'd find this an interesting task to undertake. I assume that ASSEMBLER is the best language to use, as it's the smallest, right?

Speaking of which, how does the bootloader write to the flash? I thought that programs couldn't change the program memory?

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

look at the AVR's SPM instruction.

Yes typically the bootloader is written in Assembly, but it can be written in higher level languages as well, provided they have support for SPM. Hybrid code (part Assembly, part other language) is also a good option here, especially if your compiler does not support SPM directly.

Writing code is like having sex.... make one little mistake, and you're supporting it for life.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have been using Mirosyls botloader on a Mega32 , it works fine.

One just have to download the demo C-Compiler from Think its called ICC :oops:

But the Demo has no problem to make such a little program.

Source is included in Mirosyls package , as well as theloader program for the pc.

/Bingo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Isn't there anywhere a bootloader with a pc program for linux? I think i'll try to write my own bootloader. Have to read the assembler guide on how the adressing with pointer registers is working. What about size limit. How much space can the bootloader use?

Hava a look at my web page -> http://www.tobiscorner.at.tf