[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux] Source level debug for Microblaze in Xilinx FPGA.
Hi Leonid,
My EDK/XMD is running on Windows XP, same as yours.
I am using a custom board at was based on ML401 design.
The only thing I do in XMD is to load the binary to my target, and I do
everything else from the mb-gdb shell.
I have the following selected in XMD Debug Options:
Connection - Hardward
JTAG Cable - type: Parallel Cable IV (I also use USB some time, they both
works)
JTAG Cable - Speed: 200000
Checked Auto-Discover JTAG Chain Definition
Please see below for a capture of XMD's output for my JTAG chain and
MicroBlaze Processor configurations:
JTAG chain configuration
--------------------------------------------------
Device ID Code IR Length Part Name
1 06e5c093 8 XC2C64A_vQ100_1532
2 0129e093 14 XC2VP50
Assuming, Device No: 2 contains the MicroBlaze system
Connected to the JTAG MicroProcessor Debug Module (MDM)
No of processors = 1
MicroBlaze Processor 1 Configuration :
-------------------------------------
Version............................4.00.a
No of PC Breakpoints...............2
No of Read Addr/Data Watchpoints...1
No of Write Addr/Data Watchpoints..1
Instruction Cache Support..........on
Instruction Cache Base Address.....0x2c000000
Instruction Cache High Address.....0x2fffffff
Data Cache Support.................on
Data Cache Base Address............0x2c000000
Data Cache High Address............0x2fffffff
Exceptions Support................off
FPU Support.......................on
FSL DCache Support.................off
FSL ICache Support.................off
Hard Divider Support...............on
Hard Multiplier Support............on
Barrel Shifter Support.............on
MSR clr/set Instruction Support....off
Compare Instruction Support........off
Number of FSL ports..............1
MBsfsl(0)-MDMmfsl(0) Connected..........Yes
JTAG MDM Connected to MicroBlaze 1
Connected to "mb" target. id = 0
Starting GDB server for "mb" target (id = 0) at TCP port no 1234
Setting current target to target id 0
List of connected targets
Target ID Target Type
------------------------------
0 MicroBlaze MDM-based (hw) Target *
XMD% dow -data z:/uboot/u-boot.bin 0x2f000000
Best Regards
Celia
-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx
[mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of Leonid
Sent: Thursday, February 08, 2007 7:16 PM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: RE: [microblaze-uclinux] Source level debug for Microblaze in
Xilinx FPGA.
On Wednesday, February 07, 2007 9:46 PM Celia Lee wrote:
> I am using EDK 8.1, but my source code and build environment is on
> Fedora 5 machine (2.6.15-1.2054_FC5) with
microblaze-elf-tools-20060213
> toolchain.
I have same setup and same toolchain, but Fedora Core version is 4.
Where your EDK/XMD is running? Mine is on Windows XP machine connected
to the same L2 switch.
> Since my preference is command line interface, I don't usually use the
> graphic interface.
So do I.
> Below is a sample log of my debug session. I can list the source
code,
> set break points on routine name, step thru source code, and display
both
> local and global variables.
Well, mine allows me to connect, set one break point and continue. But
as soon as breakpoint is reached, any further command (next, step,
continue) kills the session and target doest run either:
[leonid@mylinux u-boot]$ /opt/mb/bin/mb-uclinux-gdb -nw u-boot
GNU gdb 5.3Xilinx EDK 8.1 Build EDK_I.17
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "--host=i686-pc-linux-gnu
--target=microblaze"...
(gdb) target remote 192.168.0.121:1234
Remote debugging using 192.168.0.121:1234
_start () at
/home/leonid/lm125b/uClinux/petalinux-v0.10-rc1/software/petalinux-dist/
u-boot/cpu/microblaze/start.S:37
37 mts rmsr, r0
(gdb) b do_help
Breakpoint 1 at 0x23fcb830: file command.c, line 239.
(gdb) c
Continuing.
Breakpoint 1, do_help (cmdtp=0x1, flag=0, argc=603192316, argv=0x0) at
command.c:239
239 {
(gdb) c
Continuing.
Target doesn't do anything after this "continue".
Can you think of any other differences between our setups? Some special
EDK settings you had to do? BTW, what card you are working with? Mine is
Spartan-3e Starter Kit (though I also tried on proprietary Spartan-2e
based board with same success) connected via USB ) speed up to 24000000
bps.
Thanks,
Leonid.
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/