atmega64 --section-start problem

Status
Not open for further replies.

pallavibsh

Newbie level 6
Joined
May 9, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,370
Hi all,

am trying to section the flash memory but am not getting the exact syntax to do it so.

Fusebits :

BOOTRST is set
BOOTSZ=0,0

i have included in code:

__attribute__ ((section (".bootloader")))
void boot(void) __attribute__ ((section (".bootloader")));


in linker i.e in Makefile :

-Wl,--section-start=.bootloader=0x7c00 //(for 1024 words)

is so much enough to divide in section and point to the address 0x7c00.

but when i dump the code into atmega64a its not jumping to specified boot address pls help.

THANKS IN ADVANCE.[/u]
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…