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

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

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


From: andi
Subject: [avr-gcc-list] switch from application to bootloader section
Date: Mon, 21 Feb 2005 16:23:34 +0700

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

reply via email to

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