* [U-Boot] coldfire, bad program counter on "rte"
@ 2011-06-06 13:14 angelo
2011-06-06 13:30 ` Andy Pont
0 siblings, 1 reply; 4+ messages in thread
From: angelo @ 2011-06-06 13:14 UTC (permalink / raw)
To: u-boot
Hi all,
i ported with small changes/additions u-boot to a custom board with MCF5307.
Relocation into ram is done correctly, and monitor works fine except for
the timer 2 interrupt:
Once inside the assembly "_int_handler" in start.S, the "rte" cause a
vector 3 exception (instruction fetch error).
So i traced the stack/registers from inside the timer interrupt, too see
if there is something strange:
U-Boot 1.1.6 (May 27 2011 - 00:09:24)
CPU: Freescale Coldfire MCF5307 at 90 MHz
Board: Sysam AMCORE Board
DRAM: 16 MB
Stack set to 00fa1f78
Start relocate of code from ffc00400 to 00ff2000
Now running in RAM - U-Boot at: 00ff2000
Vector Number: 31 Format: 04 Fault Status: 0
PC: ffffffff SR: 00002009 SP: 00fa1d9c
D0: 00000000 D1: 0000001d D2: 00000066 D3: 00fb1f90
D4: ffffbfff D5: dfffff7e D6: eff7ffef D7: 00fb1f90
A0: 00fb1f90 A1: 00ff24c0 A2: 00fa1e3e A3: 00ffd000
A4: 7ff5fbef A5: 00ffc000 A6: 00fa1de4
?
The strange thing is that the PC that should be the address where to
return (next instruction) is 0xffffffff, from this, probably, the
exception is generated just after the "rte".
I don't really undertsand for what reason the PC is set badly from the micro, hope some 68k expert here can help me.
Many thanks in advance,
angelo
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] coldfire, bad program counter on "rte"
2011-06-06 13:14 [U-Boot] coldfire, bad program counter on "rte" angelo
@ 2011-06-06 13:30 ` Andy Pont
2011-06-06 13:38 ` angelo
0 siblings, 1 reply; 4+ messages in thread
From: Andy Pont @ 2011-06-06 13:30 UTC (permalink / raw)
To: u-boot
Hello Angelo,
> U-Boot 1.1.6 (May 27 2011 - 00:09:24)
I suggest that you have two options:
1. Create a time machine and set it for November 2006 when 1.1.6 was
current.
2. Try the latest code base for U-Boot. :-)
Andy.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] coldfire, bad program counter on "rte"
2011-06-06 13:30 ` Andy Pont
@ 2011-06-06 13:38 ` angelo
2011-06-06 14:00 ` Andy Pont
0 siblings, 1 reply; 4+ messages in thread
From: angelo @ 2011-06-06 13:38 UTC (permalink / raw)
To: u-boot
On 06/06/2011 15:30, Andy Pont wrote:
> Hello Angelo,
>
>
>> U-Boot 1.1.6 (May 27 2011 - 00:09:24)
>>
> I suggest that you have two options:
>
> 1. Create a time machine and set it for November 2006 when 1.1.6 was
> current.
>
> 2. Try the latest code base for U-Boot. :-)
>
> Andy.
>
>
>
Hi Andy,
thanks,
the "current" sourceforge link of u-boot offer this package, so i
considered as almost stable.
http://sourceforge.net/projects/u-boot/
If you think there could be some issue related to this, i certainly
update to last source.
<http://www.sysam.it>
regards,
angelo
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] coldfire, bad program counter on "rte"
2011-06-06 13:38 ` angelo
@ 2011-06-06 14:00 ` Andy Pont
0 siblings, 0 replies; 4+ messages in thread
From: Andy Pont @ 2011-06-06 14:00 UTC (permalink / raw)
To: u-boot
Angelo wrote...
> > > U-Boot 1.1.6 (May 27 2011 - 00:09:24)
> >
> > I suggest that you have two options:
> >
> > 1. Create a time machine and set it for November 2006 when 1.1.6 was
> > current.
> >
> > 2. Try the latest code base for U-Boot. :-)
>
> the "current" sourceforge link of u-boot offer this package, so i
considered as almost stable.
>
> http://sourceforge.net/projects/u-boot/
I think it is a long time since the sourceforge.net page was current. The
home for the project is at http://www.denx.de/wiki/U-Boot.
> If you think there could be some issue related to this, i certainly update
to last source.
If nothing else, you might want the last four years worth of feature
enhancements, bug fixes, etc.
Regards,
Andy.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-06-06 14:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-06 13:14 [U-Boot] coldfire, bad program counter on "rte" angelo
2011-06-06 13:30 ` Andy Pont
2011-06-06 13:38 ` angelo
2011-06-06 14:00 ` Andy Pont
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox