public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dmytro Bablinyuk <dmytro.bablinyuk@rftechnology.com.au>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Re: BDI and u-boot
Date: Wed, 05 Oct 2005 17:05:45 +1000	[thread overview]
Message-ID: <43437B49.9020008@rftechnology.com.au> (raw)
In-Reply-To: <OF060C8B1A.B645C24D-ON48257091.002210C8@uk.marconicomms.com>

>       Try `ti` instead of `go` to see where it resets.
  ...
(gdb) ni
<signal handler called>
(gdb) disassemble
Dump of assembler code for function boot_cold:
0xfff00118 <boot_cold+0>:       lis     r3,3841
0xfff0011c <boot_cold+4>:       nop
0xfff00120 <boot_cold+8>:       lwz     r4,0(r3)
0xfff00124 <boot_cold+12>:      nop
0xfff00128 <boot_cold+16>:      rlwinm  r4,r4,0,8,5
0xfff0012c <boot_cold+20>:      nop
0xfff00130 <boot_cold+24>:      oris    r4,r4,512
0xfff00134 <boot_cold+28>:      nop
0xfff00138 <boot_cold+32>:      stw     r4,0(r3)
0xfff0013c <boot_cold+36>:      nop
(gdb) ni
Cannot access memory at address 0x3b87018
(gdb) info program
Debugging a target over a serial line.
Program stopped at 0xfff00124.
It stopped with signal SIGTRAP, Trace/breakpoint trap.
(gdb)

I have discovered that if I use IMMR from default config for BDI
WM32   0x0F0101A8      0x04700000      ;IMMR : internal space @ 0x04700000
...
then on 'ti' or 'go' it resetting after only a few commands (see above).
If I comment the IMMR in ads8272.cfg (BDI config) then I can debug 
through BDI or gdb.
BUT - if I do

(gdb) reset
<signal handler called>
(gdb) c
Continuing.

Program received signal SIGSTOP, Stopped (signal).
<signal handler called>

AND If I do

(gdb) reset
<signal handler called>
(gdb) ni
<signal handler called>
(gdb) ni
<signal handler called>
(gdb) c
Continuing.

Breakpoint 2, <signal handler called>
(gdb) p dest_addr
$1 = 0x3fc7000
...

It's like a delay required or I don't know what it is - I just need to 
do a few 'ni' before 'c', otherwise I have SIGSTOP. I think I am missing 
something.

ALSO if I type
(gdb) n
then it will never come back and I can see on BDI
- TARGET: stepped
- TARGET: stepped
- TARGET: stepped
...
Have you seen this before? What I missed?

Thank you

  reply	other threads:[~2005-10-05  7:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-05  6:13 [U-Boot-Users] BDI and u-boot KokHow Teh
2005-10-05  7:05 ` Dmytro Bablinyuk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-10-05  8:39 [U-Boot-Users] " KokHow Teh
2005-10-05 10:35 ` Dmytro Bablinyuk
2005-10-05 12:23 [U-Boot-Users] Re: Bdi " Srivatsan CR
2005-10-05 22:36 ` Dmytro Bablinyuk

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=43437B49.9020008@rftechnology.com.au \
    --to=dmytro.bablinyuk@rftechnology.com.au \
    --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