avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] switch from application to bootloader section


From: Yannick PODGORSKI
Subject: Re: [avr-gcc-list] switch from application to bootloader section
Date: Mon, 21 Feb 2005 12:10:58 +0100

Don't you make the opposite ?
 
to switch app section to boot section is:
 
//....
cli();
GICR = (1<<IVCE);
GICR = (1<<IVSEL);
void (*function)(void) = 0x1E000
function();
 
Anyone know how to switch interupt vector from bootloader section to application section ?
I Try :
 
//...
cli();
GICR = (1<<IVCE);
GICR = (0<<IVCE);                                // try this
void (*function)(void) = 0x0000
function();
//...
 
Can you give more details :
- what happen ?
 
Do you disable watch dog ?

Yannick Podgorski
www.kuantic.com

----- Original Message -----
From: andi
Sent: Monday, February 21, 2005 10:23 AM
Subject: [avr-gcc-list] switch from application to bootloader section

I know to switch app section to boot section is:
 
//....
cli();
GICR = (1<<IVCE);
GICR = (1<<IVSEL);
void (*function)(void) = 0x0000
function();
 
Anyone know how to switch interupt vector from bootloader section to application section ?
I Try :
 
//...
cli();
GICR = (1<<IVCE);
GICR = 0;
void (*function)(void) = 0x1E000
function();
//...
 
 
but didn't work.
 
 
Andi


_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

reply via email to

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