Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: [AVR-Chat] Re: Passing info from bootloader to application

2014-08-19 by Chuck Hackett

Thanks for the info.  I’m digesting it now along with reading some Inline Assembly tutorials so I can understand the code.

 

Cheers,

 

Chuck Hackett

"Good judgment comes from experience, experience comes from bad judgment"

7.5" gauge Union Pacific Northern (4-8-4) 844 http://www.whitetrout.net/Chuck

 

 

 

From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] 
Sent: Monday, August 18, 2014 10:32 AM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Re: Passing info from bootloader to application

 



The simplest way is to pass the MCUSR value in a register.  I recently added code to the OptiBoot bootloader to do this and it has been done this way in the ZBasic bootloader for years.  In both cases, register R2 is used but you can choose any register that isn't modified by the startup code prior to your having a chance to store the value.  You can find the source code for OptiBoot online; my change was incorporated into v4.6.Don KinzerZBasic Microcontrollershttp://www.zbasic.net 






  _____  

Posted by: dkinzer@gmail.com 

  _____  

  <http://geo.yahoo.com/serv?s=97476590/grpId=4313974/grpspId=1706554205/msgId=18663/stime=1408375950>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.