public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [Fwd: RE: Problems using Insight/GDB for Coldfire]
@ 2003-09-17 14:31 Keith Seitz
  2003-09-17 14:35 ` Keith Seitz
  0 siblings, 1 reply; 2+ messages in thread
From: Keith Seitz @ 2003-09-17 14:31 UTC (permalink / raw)
  To: insight

[-- Attachment #1: Type: text/plain, Size: 1160 bytes --]

[Back to list]

-----Forwarded Message-----

> From: "Dörr, Dirk" <Dirk.Doerr@3SOFT.de>
> To: Keith Seitz <keiths@redhat.com>
> Subject: RE: Problems using Insight/GDB for Coldfire
> Date: 17 Sep 2003 16:23:37 +0200
> 
> You wrote:
> > Can you give me a URI?
> 
> Sorry for the confusing. I sent this message to several maillinglists including the one from the sourceforge Project bdmtools.
> 
> http://sourceforge.net/projects/bdm/
> 
> > In the example, I don't see a target command.
> 
> It's in the .gdbinit file (See the tar archive; but I attached it to this mail). As you can see I use it for board initialisation.
> 
> > Well, Insight is just a UI
> I know that's what confused me. A working command line but non-working gui. I will try starting insight without .gdbinit and execute it later. I will report you about the results.
> 
> Thanks for your help!
> 
> -- 
> 
> Dipl.-Inf. (FH) Dirk Dörr, Medizintechnik 
> 3SOFT GmbH, Frauenweiherstr. 14, D-91058 Erlangen, Germany 
> Standort: Hindenburgstraße 27 - 29, D-71106 Magstadt, Germany
> Tel. +49-7159-4041-0 mailto:Dirk.Doerr@3SOFT.de
> Fax +49-9131-7701-334 http://www.3SOFT.de
> 
> 
> 

[-- Attachment #2: gdbinit --]
[-- Type: application/octet-stream, Size: 3597 bytes --]

#
# GDB Init script for the Coldfire 5272 processor.
#
# The main purpose of this script is to configure the 
# DRAM controller so code can be loaded.
#
#

define addresses

set $mbar  = 0x10000001
set $scr   = $mbar - 1 + 0x004
set $spr   = $mbar - 1 + 0x006
set $pmr   = $mbar - 1 + 0x008
set $apmr  = $mbar - 1 + 0x00e
set $dir   = $mbar - 1 + 0x010
set $icr1  = $mbar - 1 + 0x020
set $icr2  = $mbar - 1 + 0x024
set $icr3  = $mbar - 1 + 0x028
set $icr4  = $mbar - 1 + 0x02c
set $isr   = $mbar - 1 + 0x030
set $pitr  = $mbar - 1 + 0x034
set $piwr  = $mbar - 1 + 0x038
set $pivr  = $mbar - 1 + 0x03f
set $csbr0 = $mbar - 1 + 0x040
set $csor0 = $mbar - 1 + 0x044
set $csbr1 = $mbar - 1 + 0x048
set $csor1 = $mbar - 1 + 0x04c
set $csbr2 = $mbar - 1 + 0x050
set $csor2 = $mbar - 1 + 0x054
set $csbr3 = $mbar - 1 + 0x058
set $csor3 = $mbar - 1 + 0x05c
set $csbr4 = $mbar - 1 + 0x060
set $csor4 = $mbar - 1 + 0x064
set $csbr5 = $mbar - 1 + 0x068
set $csor5 = $mbar - 1 + 0x06c
set $csbr6 = $mbar - 1 + 0x070
set $csor6 = $mbar - 1 + 0x074
set $csbr7 = $mbar - 1 + 0x078
set $csor7 = $mbar - 1 + 0x07c
set $pacnt = $mbar - 1 + 0x080
set $paddr = $mbar - 1 + 0x084
set $padat = $mbar - 1 + 0x086
set $pbcnt = $mbar - 1 + 0x088
set $pbddr = $mbar - 1 + 0x08c
set $pbdat = $mbar - 1 + 0x08e
set $pcddr = $mbar - 1 + 0x094
set $pcdat = $mbar - 1 + 0x096
set $pdcnt = $mbar - 1 + 0x098
set $sdcr  = $mbar - 1 + 0x180
set $sdtr  = $mbar - 1 + 0x184
set $wrrr  = $mbar - 1 + 0x280
set $wirr  = $mbar - 1 + 0x283
set $wcr   = $mbar - 1 + 0x288
set $wer   = $mbar - 1 + 0x28c

end


#
# Setup system configuration
#
define setup-sys
set *((unsigned short *) $scr) = 0x9003
set *((unsigned short *) $spr) = 0x00ff
set *((unsigned char *) $pivr) = 0x4f
end


#
# Setup Chip Selects (as per Motorola M5272C3 board)
#
define setup-cs

# CS0 -- FLASH
set *((unsigned long *) $csbr0) = 0xFFE00201
set *((unsigned long *) $csor0) = 0xFFE00014

# CS1 -- not used
set *((unsigned long *) $csbr1) = 0x00000000
set *((unsigned long *) $csor1) = 0x00000000

# CS2 -- not used
set *((unsigned long *) $csbr2) = 0x30000001
set *((unsigned long *) $csor2) = 0xFFF80000

# CS3 -- not used
set *((unsigned long *) $csbr3) = 0x00000000
set *((unsigned long *) $csor3) = 0xFFFFF078

# CS4 -- not used
set *((unsigned long *) $csbr4) = 0x00004300
set *((unsigned long *) $csor4) = 0x00000000

# CS5 -- not used
set *((unsigned long *) $csbr5) = 0x00000000
set *((unsigned long *) $csor5) = 0x00000000

# CS6 -- not used
set *((unsigned long *) $csbr6) = 0x00000000
set *((unsigned long *) $csor6) = 0x00000000

# CS7 -- SDRAM
set *((unsigned long *) $csbr7) = 0x00000701
set *((unsigned long *) $csor7) = 0xFFC0007C

end


#
# Setup the DRAM controller.
#

define setup-dram
#set *((unsigned long *) $sdtr) = 0x0000AC39
set *((unsigned long *) $sdtr) = 0x0000F539
#set *((unsigned long *) $sdcr) = 0x00002211
set *((unsigned long *) $sdcr) = 0x00004213

# Dummy write to start SDRAM
set *((unsigned long *) 0) = 0
end


#
# Setup for GPIO pins
#
define setup-ppio

# PORT A
set *((unsigned long *) $pacnt) = 0x00000000
set *((unsigned short *) $paddr) = 0x0000
set *((unsigned short *) $padat) = 0x0000

# PORT B
set *((unsigned long *) $pbcnt) = 0x55554155
set *((unsigned short *) $pbddr) = 0x0000

# PORT C
#set *((unsigned short *) $pcddr) = 0x0000
#set *((unsigned short *) $pcdat) = 0x1898

# PORT D
set *((unsigned long *) $pdcnt) = 0x00000000

end


#
#	Added for uClinux-coldfire target...
#
target bdm /dev/bdmcf0

addresses
setup-sys
setup-cs
setup-dram
setup-ppio
set print pretty
set print asm-demangle
display/i $pc


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-17 14:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-17 14:31 [Fwd: RE: Problems using Insight/GDB for Coldfire] Keith Seitz
2003-09-17 14:35 ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).