Yahoo Groups archive

AVR-Chat

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

Thread

RE: [AVR-Chat] help required abt program memory

RE: [AVR-Chat] help required abt program memory

2008-04-01 by Tim Mitchell

John Samperi wrote:
> At 09:44 PM 31/03/2008, you wrote:
>> To change the flash memory from code, you use the spm instruction.
> 
> Except that the SPM instruction does NOT work from normal memory but
> only from Bootloader memory. 
> 

Is that so, I didn't know that, maybe I should take my own advice and
read the datasheet more closely...

-- 
Tim Mitchell
tim@sabretechnology.co.uk http://www.sabretechnology.co.uk
Sabre Technology (Hull) Ltd, 3a Newlands Science Park, Hull HU6 7TQ
Registered in England and Wales no.3131504
t:01482 801003 f:01482 801078

RE: [AVR-Chat] help required abt program memory

2008-04-01 by Enki

On 1 Apr 2008 at 13:30, Tim Mitchell wrote:

> John Samperi wrote:
> > At 09:44 PM 31/03/2008, you wrote:
> >> To change the flash memory from code, you use the spm instruction.
> > 
> > Except that the SPM instruction does NOT work from normal memory but
> > only from Bootloader memory. 
> > 
> 
> Is that so, I didn't know that, maybe I should take my own advice and
> read the datasheet more closely...
> 
> -- 

	The SPM instruction can address the first 64kBytes of program 
memory, according to the datasheet.

	Mark Jordan

RE: [AVR-Chat] help required abt program memory

2008-04-01 by John Samperi

At 12:51 AM 2/04/2008, you wrote:
>The SPM instruction can address the first 64kBytes of program
>memory, according to the datasheet.

I believe this is the case however I have based my comments on the
following. p242 M644 data sheet under Application Section.

The Application section can never store any Boot Loader code since 
the SPM instruction is
disabled when executed from the Application section.

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

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.