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

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

Re: [avr-gcc-list] jmp boot loader


From: Matthias Weißer
Subject: Re: [avr-gcc-list] jmp boot loader
Date: Thu, 30 Dec 2004 21:37:42 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.5) Gecko/20041206 Thunderbird/1.0 Mnenhy/0.7

Yannick PODGORSKI schrieb:
asm volatile ("jmp 0"); // to start application but It restarts to boot section (not application section).

I had similar problems when I developed a bootloader for an ATMega8. I solved it this way:

Replaced
asm volatile("rjmp 0");
with
asm volatile("rjmp app_start");

and defined a linker symbol "app_start" at the linker command line.


--
Matthias Weißer
address@hidden
http://www.matwei.de


reply via email to

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