[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Bootloader - SPM - Mega128

From: Christoph Plattner
Subject: Re: [avr-gcc-list] Bootloader - SPM - Mega128
Date: Tue, 22 Jan 2002 18:43:17 +0100

Perhaps the compiler/assembler do not know the instruction
yet. It is possible that you have to write the byte code
of the instruction with ".byte 0xNN" or similar stuff.

Christoph P.

Pieter Potgieter wrote:
> Hi folks
> Has someone written a bootloader for the mega128 ?
> How do I get the following opcode to work?
>  __asm__ __volatile__ ( "spm" : : );
> If I use this the compiler tells me the following:
> ccDPY2QO.s:1997: Error: illegal opcode spm for mcu atmega128
> I intend to write macros to handle the assembler for the bootloader
> page_write and page_load etc.
> Question:
> How is the SPM instruction involved, because in the example bootloader code
> in the datasheet for the Mega128, I do not see the spm instruction being
> used?
> Any suggestions or previous experience will be appreciated.
> Thanks
> Pieter
> avr-gcc-list at http://avr1.org

private:        address@hidden
company:        address@hidden

avr-gcc-list at http://avr1.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]