public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: angelo <angelo70@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] coldfire, bad program counter on "rte"
Date: Mon, 06 Jun 2011 15:14:23 +0200	[thread overview]
Message-ID: <4DECD2AF.1090409@gmail.com> (raw)

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

             reply	other threads:[~2011-06-06 13:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-06 13:14 angelo [this message]
2011-06-06 13:30 ` [U-Boot] coldfire, bad program counter on "rte" Andy Pont
2011-06-06 13:38   ` angelo
2011-06-06 14:00     ` Andy Pont

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DECD2AF.1090409@gmail.com \
    --to=angelo70@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox