Skip to content

Categories:

AVR Bootloader FAQ

I have done a lot work with Atmel AVR microcontrollers over the past year. My most recent effect was creating a custom bootloader, and I decided to write down what I learned in the form of a FAQ. Most of the concepts covered within are not discussed thoroughly in datasheets, and various tips for designing a robust bootloader are provided.

AVR Bootloader Faq

Table of Contents

1. How do I get started?
2. What are the NRWW and RWW regions?
3. How does the bootloader update the application?
4. Can a bootloader update fuses?
5. What is BOOTLOADER_SECTION in <avr/boot.h> for?
6. How do I program the bootloader to the MCU?
7. How do I program both the application and the bootloader?
8. Can a bootloader use interrupts?
9. Should the bootloader or the application run first?
10. How does the bootloader know when to start the application?
11. How does the bootloader start the application?
12. How can the bootloader be sure the application is intact?
13. Can the bootloader use code built into the application?
14. Can the application use code built into the bootloader?
15. Why can’t global variables be accessed from shared functions?
16. Can the application use an IRS built into the bootloader?
17. How can a shared ISR access global data?
18. Can I save space in a bootloader with few or no ISRs?

This FAQ was also posted as a tutorial on avrfreaks.net

Posted in Technical.

Tagged with , .


70 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Continuing the Discussion

  1. WILLARD linked to this post on July 15, 2010


    Pillspot.org. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.Best quality drugs. No prescription drugs. Buy drugs online

    Buy:Cialis Soft Tabs.Viagra Professional.Cialis Super Active+.Levitra.Viagra.Cialis Professional.VPXL.Viagra Soft Tabs.Zithromax.Tramadol.Maxaman.Cialis.Super Active ED Pack.Viagra Super Active+.Viagra Super Force.Soma.Propecia….

  2. stage linked to this post on August 29, 2010

    Guitar http://imonsterupnhr.copious-systems.com/tag/stage+2+monster+Guitar/ : stage…

    Guitar…

  3. challenger linked to this post on September 14, 2010

    chrome http://kzg.jma.ii88.vg : challenger…

    chrome…

  4. ERNEST linked to this post on December 6, 2010

    buy@Amoxicillin.com” rel=”nofollow”>.

    Buy:Viagra Super Active+.Viagra Soft Tabs.Viagra Professional.Maxaman.Tramadol.Cialis Super Active+.Super Active ED Pack.Cialis.VPXL.Soma.Cialis Professional.Levitra.Viagra Super Force.Cialis Soft Tabs.Viagra.Propecia.Zithromax….

  5. EVAN linked to this post on December 17, 2010

    ████████►BUY VIAGRA◀███████…

    ████████▲▲▲▲▲▲▲▲▲████████…

  6. CARLOS linked to this post on December 18, 2010

    ████████►BUY CIALIS◀████████…

    ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲…

  7. CHARLIE linked to this post on December 18, 2010

    ████████►BUY CIALIS◀████████…

    ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲…

  8. ARTURO linked to this post on December 20, 2010

    Abilify@official.site” rel=”nofollow”>.

    Buywithout prescription…

  9. CURTIS linked to this post on December 20, 2010

    buy viagra canada

    Buygeneric drugs…

  10. TODD linked to this post on December 21, 2010

    buy pure acai berry

    Buyno prescription…

  11. TIMOTHY linked to this post on December 22, 2010

    dosage of amoxicillin for respiratory disorder

    Buygeneric drugs…

  12. DERRICK linked to this post on December 24, 2010

    Cialis discount

    Buyno prescription…

  13. KARL linked to this post on December 24, 2010

    Abilify

    Buygeneric pills…

  14. ARMANDO linked to this post on December 24, 2010

    abilify and siezures

    Buynow…

  15. ANTHONY linked to this post on December 25, 2010

    rxlist@abilify.now” rel=”nofollow”>..

    Buydrugs without prescription…

  16. WALTER linked to this post on December 27, 2010

    Abilify@official.site” rel=”nofollow”>…

    Buyno prescription…

  17. DAVE linked to this post on December 27, 2010

    Accutane@official.site” rel=”nofollow”>.

    Buywithout prescription…

  18. RICARDO linked to this post on December 28, 2010

    fosamax@actonel.now” rel=”nofollow”>.

    Buynow…

  19. JOSHUA linked to this post on December 29, 2010

    Aldactone@official.site” rel=”nofollow”>.

    Buygeneric drugs…

  20. CLAUDE linked to this post on December 29, 2010

    Allegra@official.site” rel=”nofollow”>…

    Buygeneric pills…

  21. FERNANDO linked to this post on December 29, 2010

    Amoxicillin@official.site” rel=”nofollow”>…

    Buyno prescription…

  22. GREGORY linked to this post on December 31, 2010

    Azor@official.site” rel=”nofollow”>…

    Buygeneric pills…

  23. RAYMOND linked to this post on January 1, 2011

    Cozaar@official.site” rel=”nofollow”>..

    Buynow it…

  24. JULIAN linked to this post on January 3, 2011

    abilify@anxiety.now” rel=”nofollow”>.

    Buygeneric drugs…

  25. DARRELL linked to this post on January 4, 2011

    generic@viagra.sildenafil.paypal.no.prescription” rel=”nofollow”>…

    Buygeneric meds…

  26. JEREMY linked to this post on January 4, 2011

    generic@Levitra.now” rel=”nofollow”>..

    Buyno prescription…

  27. GUY linked to this post on January 5, 2011

    abilify@and.sleep.issues” rel=”nofollow”>.

    Buyno prescription…

  28. LEE linked to this post on January 9, 2011

    i@am.pregnant.how.often.can.i.take.25mg.of.phenergan.safely” rel=”nofollow”>…

    Buygeneric drugs…

  29. LEE linked to this post on January 10, 2011

    cephalexin@use.now” rel=”nofollow”>…

    Buygeneric drugs…

  30. ERNEST linked to this post on January 12, 2011

    purchase@effexor.now” rel=”nofollow”>.

    Buyno prescription…

  31. DENNIS linked to this post on January 21, 2011

    Depakote@official.site” rel=”nofollow”>.

    Buygeneric drugs…

  32. GABRIEL linked to this post on February 3, 2011

    Benuryl

    Buywithout prescription…

  33. JESSIE linked to this post on February 3, 2011

    Zyvox

    Buydrugs without prescription…

  34. DONALD linked to this post on February 3, 2011

    Zyrtec

    Buygeneric drugs…

  35. SEAN linked to this post on February 3, 2011

    Zyrtec

    Buydrugs without prescription…

  36. DON linked to this post on February 3, 2011

    xeloda

    Buynow…

  37. GLENN linked to this post on February 3, 2011

    Zyrtec

    Buygeneric pills…

  38. PHILIP linked to this post on February 4, 2011

    xeloda bleeding

    Buygeneric meds…

  39. DAN linked to this post on February 4, 2011

    zovirax acyclovir

    Buydrugs without prescription…

  40. MATTHEW linked to this post on February 4, 2011

    what is the shelf life of zyrtec

    Buynow it…

  41. REX linked to this post on February 4, 2011

    Zoloft

    Buygeneric drugs…

  42. JOEL linked to this post on February 5, 2011

    Zoloft

    Buygeneric meds…

  43. DENNIS linked to this post on February 5, 2011

    Voltaren

    Buyno prescription…

  44. KEITH linked to this post on February 5, 2011

    Voltaren

    Buygeneric drugs…

  45. ARTHUR linked to this post on February 6, 2011

    other names for trazodone

    Buyno prescription…

  46. JAMIE linked to this post on February 6, 2011

    Zyrtec

    Buygeneric drugs…

  47. SHAWN linked to this post on February 6, 2011

    Clindamycin

    Buywithout prescription…

  48. LONNIE linked to this post on February 6, 2011

    quinapril

    Buyit now…

  49. SAM linked to this post on February 6, 2011

    Yaz

    Buywithout prescription…

  50. HERMAN linked to this post on February 7, 2011

    Xenical

    Buynow…

  51. NEIL linked to this post on February 7, 2011

    Zocor

    Buygeneric drugs…

  52. SHAWN linked to this post on February 7, 2011

    Xalatan

    Buywithout prescription…

  53. EDWARD linked to this post on February 7, 2011

    Yaz

    Buywithout prescription…

  54. WESLEY linked to this post on February 7, 2011

    Vitamin E

    Buynow…

  55. KARL linked to this post on February 7, 2011

    Vitamin B

    Buydrugs without prescription…

  56. DAVE linked to this post on March 2, 2011

    Zyrtec

    Buyno prescription…

  57. RUSSELL linked to this post on March 3, 2011

    Zofran

    Buygeneric pills…

  58. RONNIE linked to this post on March 3, 2011

    leg swelling lasix

    Buyno prescription…

  59. JONATHAN linked to this post on March 3, 2011

    can you take zoloft and blood pressure medication together

    Buynow…

  60. RANDY linked to this post on March 3, 2011

    Vitamin B

    Buygeneric drugs…

  61. VICTOR linked to this post on March 3, 2011

    kids tylenol recall

    Buygeneric meds…

  62. DONNIE linked to this post on March 3, 2011

    yaz plan b

    Buydrugs without prescription…

  63. ADAM linked to this post on March 4, 2011

    Zyrtec

    Buygeneric meds…

  64. KENT linked to this post on March 4, 2011

    kytril granisetron hci tablet 1 mg

    Buyit now…

  65. JEREMIAH linked to this post on March 5, 2011

    Pyridium

    Buygeneric drugs…

  66. DUSTIN linked to this post on March 5, 2011

    pyrantel pamoate gets rid of which worms

    Buydrugs without prescription…

  67. MIGUEL linked to this post on March 5, 2011

    stopped taking prozac realized i like him

    Buygeneric drugs…

  68. DOUG linked to this post on March 6, 2011

    dermatological side effects of rogaine

    Buywithout prescription…

  69. JEFF linked to this post on March 6, 2011

    Prozac

    Buynow it…

  70. PETER linked to this post on March 6, 2011

    provera 10 days perimenopause

    Buygeneric drugs…