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

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

[avr-gcc-list] Startup code


From: Pieter Potgieter
Subject: [avr-gcc-list] Startup code
Date: Wed, 30 Jan 2002 15:17:26 +0200

void __attribute__ ((section(".bootloader"))) RunBootloader(void)
{

  // My Bootcode

}

Ok I got this far:
The bootloader section is located at address 0x1FC00 by the linker.
The fuse bit in the mega128 is set to jump to the bootloader address.

Question :
Are there any startup code or registers that needs to be initialised in the 
RunBootloader() procedure?  Because the normal startup code is only executed 
when the mega starts executing from address 0x0000.

IOW what startup code is neccessary for the mega to start executing from an 
address?

Regards
Pieter Potgieter.



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



reply via email to

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