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

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

Re: [avr-gcc-list] Problems programming flash


From: Martin Bammer
Subject: Re: [avr-gcc-list] Problems programming flash
Date: Mon, 7 Feb 2005 12:47:44 +0100
User-agent: KMail/1.7.1

YES THAT'S IT!!!

Thank you very much. My bootloader address was set to 0xF000 instead of 
0x1E000.

Cheers, Martin

> gcc toolchain needs byte address here 0xF000*2 = 0x1E000.
> I use :
> MT_BOOT_LOADER_ADDRESS = 0x1E000
> LDFLAGS += -Wl, --section-start=.text=$(MT_BOOT_LOADER_ADDRESS).
>
> With AVRStudio, program the fuses :
> BOOTRST = 0 (reset at @ 0x1E000)
> BOOTSZ = 00 (4096 words for BLS)
> All Boot Locks Bits to mode 1 (no lock at all)
>
> At start of code, program :
> MCUCR = (1<<IVCE);
> MCUCR = (1<<IVSEL); to put interrupt vector in LBS
>
> Hope that helps.
> Don't give up...
>
> Yannick Podgorski
> www.kuantic.com
>

reply via email to

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