coldfire, bad program counter on "rte"
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
Hello Angelo,
Quoted 1 line
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.
Quoted 5 lines · Andy Pont
Hello Angelo,
Quoted 2 lines
U-Boot 1.1.6 (May 27 2011 - 00:09:24)
Quoted 11 lines
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
Angelo wrote...
Quoted 10 lines
Quoted 8 lines
Quoted 1 line
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.
Quoted 2 lines
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.
Quoted 1 line
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.