Yahoo Groups archive

AVR-Chat

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

Message

Re: Passing info from bootloader to application

2014-08-18 by dkinzer@gmail.com

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

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.