pallavibsh
Newbie level 6
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]
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]