|
From: | Bob Paddock |
Subject: | Re: [avr-chat] Mega88 bootloader? |
Date: | Thu, 21 Jul 2005 11:19:45 -0400 |
User-agent: | Opera M2/7.54u1 (Win32, build 3918) |
Bob Paddock wrote:At the end of my bootloader I have: __asm__ __volatile__ ("rjmp 0x0000\n\t" ::); The code that seems to be generated is: __asm__ __volatile__ ("rjmp 0x0000\n\t" ::); 1e1c: 26 cf rjmp .-436 ; 0x1c6a What don't I understand here? 1C6A is obviously not 0x0000. 1C6A is my spi_xfer() function.
I understand why it does not work now, one of those "Duh" moments, when someone looks over your shoulder. Of course a Relative Jump (RJMP) is not going to jump to absolute zero. Still don't understand why it came out at what seems to be an arbitrary address.
asm volatile("jmp app_start");
The Mega88 does not support "JMP".
[Prev in Thread] | Current Thread | [Next in Thread] |