From: Kylo Ginsberg <kylo.ginsberg@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] start.S for mpc85xx and debug via BDI2000
Date: Wed, 25 May 2005 07:12:15 -0700 [thread overview]
Message-ID: <61cc712d050525071269691255@mail.gmail.com> (raw)
In-Reply-To: <d71sa9$d0s$1@sea.gmane.org>
On 5/25/05, Armand Ciejak <armand.ciejak@free.fr> wrote:
> I'm having problem in debugging U-boot for a MPC8540 processor.
> I'm debugging the very first instructions with the BDI2000. The system
> crash at 2 places in start.S:
>
> 1- when clearing debug registers
> 2- when setting up interrupt vectors
I'm assuming you mean "the system crashes if I set a breakpoint at
...". The 85xx is a real pain in this regard, because it wants to
fetch andexecute the debug exception vector first thing, so BDM
debugging only works if the debug exception is enabled and its vector
is fetchable. So the two points you list below: 1) disable debug
exceptions 2) overwrite the base address for exceptions.
I just work around this by using TI to step through this very early code.
Also, btw, you'll encounter a similar problem when debugging early
linux startup b/c u-boot doesn't currently relocate exception vectors
to ram. I posted a u-boot patch for this issue a month or so back;
you might want to google for that.
Cheers,
Kylo
prev parent reply other threads:[~2005-05-25 14:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-25 12:58 [U-Boot-Users] start.S for mpc85xx and debug via BDI2000 Armand Ciejak
2005-05-25 14:12 ` Kylo Ginsberg [this message]
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=61cc712d050525071269691255@mail.gmail.com \
--to=kylo.ginsberg@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