Atmel AVR Bootloader?

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

Is there a published Atmel bootloader for the ATmega chips.

 

I have created a working bootloader in assembly language from ATmega328 manual.

 

I have been looking to see if there is a pulished/downloadable bootloader from Atmel

 

Bob Macklin

Seattle, Wa

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

The Arduino bootloader?

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 to see if there is a pulished/downloadable bootloader from Atmel

 

I have created a working bootloader in assembly language from ATmega328 manual

 Maybe now they will have one!  Have you considered Optiboot, used by many...but not an "Atmel"  proper bootloader 

When in the dark remember-the future looks brighter than ever.

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

cklinbob wrote:

Is there a published Atmel bootloader for the ATmega chips.

 

 

Yes. Since 2004 there has been AVR109...

 

#1 This forum helps those that help themselves

#2 All grounds are not created equal

#3 How have you proved that your chip is running at xxMHz?

#4 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand." - Heater's ex-boss

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

Try the project section here. Must be 10's of the things. But as above (at least for Arduino class chips) the defacto standard these days must be Optiboot.
.
But you know how it's said that every programmer has a design for a new programming language itching to get out? I think the same is true of bootloaders! Here's my contribution to the world...
.
https://spaces.microchip.com/gf/...

Last Edited: Thu. Jul 19, 2018 - 08:54 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I know about the Arduino bootloader. I was wondering if Atmel had a published bootloader.

 

I started programming the ATmeaga chips about 2005. Ardiuno did not exest at that time.

 

I was using the AVR IDE ver 4 at that time. I read in the 328 user guide about the bootloader. So I created on that I have been using.

 

And it still works.

 

I was just wondering if there was an offical Atmel bootloader.

 

Bob Macklin

Seattle, Wa

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

cklinbob wrote:
 I was wondering if Atmel had a published ...

The way to answer that question is to go to the Product Page for the device in question; eg,

 

https://www.microchip.com/wwwproducts/en/ATmega328P

 

Then look at the 'Documents' tab

 

There you will find three "Bootloader" documents ...

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

cklinbob wrote:
I was wondering if Atmel had a published bootloader.
AVR109 (which basically IS the Arduino bootloader in fact - same protocol anyway). Also look at AVR OSP.

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

cklinbob wrote:
I started programming the ATmeaga chips about 2005

Then you should recognise a CD like this:

 

 

By the wonders of the new-fangled interwebs, all that stuff is now available at the click of a browser via the Product Page

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Thu. Jul 26, 2018 - 10:23 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Brian Fairchild wrote:
Since 2004 there has been AVR109

Yep - there it is:

 

awneil wrote:
look at the 'Documents' tab   There you will find three "Bootloader" documents ...

clawson wrote:
AVR109

Yep - that's one of them.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AVR109 (which basically IS the Arduino bootloader in fact - same protocol anyway).

 

Alas, AVR109 and the STK500 (used by the Arduino Bootloader) are not even close to be the "same protocol."

For example, in STK500v1, the 'V' command is STK_UNIVERSAL (allows the host to send an arbitrary SPI command), but in AVR109 'V' (more sensibly?) returns the Software Verson.

 

AVR109 is an app note demonstrating how to write a bootloader.  And IIRC it was used on the "Butterfly" Eval board.

But my general impression is that it never quite reached the status of a supported "Atmel Provided Bootloader" in the same way that SAM-BA did.

If you need an AVR bootloader, you'd probably be better off with Optiboot - it has a bunch of developers that have been poking at it, and a stunning number of users (via Arduino.  Although most of them are running a much older-than-current version.)

 

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

Ah yes, failing brain cells - I was thinking Butterfly, not Arduino. It's the Butterfly bootloader that is AVR109 based.