UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer mvpratt
Observer
4,855 Views
Registered: ‎11-13-2007

XMD can't connect to Microblaze

I've got a Microblaze design with a simple C program that Im trying to debug. The problem is that XMD won't connect to the processor.  I get an error message that the processor can't be stopped (see below for detailed message).  My design is normally operating at 2MHz system clock (need to clock slowly for a custom peripheral).  I noticed that if I increase the clock to 50MHz,  XMD works fine.  But I need to run the OPB at 2MHz due to a custom peripheral Im using.  Does anyone know why XMD would not connect when the system clock is very slow?  Alternatively, is it possible to have my peripheral OPB bus running at 2MHz while the rest of the system runs at 50MHz?

 

Thanks,

 

Mike

 

Here is the complete error message:

 


XMD%
XMD% connect mb mdm
Info:AutoDetecting cable. Please wait.
Info:Connecting to cable (Parallel Port - LPT1).
Info:Checking cable driver.
Info: Driver windrvr6.sys version = 8.1.1.0.Info: WinDriver v8.11 Jungo (c) 1997
 - 2006 Build Date: Oct 16 2006 X86 32bit SYS 12:35:07, version = 811.
No resources.
No resources.
Info:Cable connection failed.
Info:Connecting to cable (Parallel Port - LPT2).
Info:Checking cable driver.
Info: Driver windrvr6.sys version = 8.1.1.0.Info: WinDriver v8.11 Jungo (c) 1997
 - 2006 Build Date: Oct 16 2006 X86 32bit SYS 12:35:07, version = 811.
Info:Cable connection failed.
Info:Connecting to cable (Parallel Port - LPT3).
Info:Checking cable driver.
Info: Driver windrvr6.sys version = 8.1.1.0.Info: WinDriver v8.11 Jungo (c) 1997
 - 2006 Build Date: Oct 16 2006 X86 32bit SYS 12:35:07, version = 811.
Info:Cable connection failed.
Info:Connecting to cable (Parallel Port - LPT4).
Info:Checking cable driver.
Info: Driver windrvr6.sys version = 8.1.1.0.Info: WinDriver v8.11 Jungo (c) 1997
 - 2006 Build Date: Oct 16 2006 X86 32bit SYS 12:35:07, version = 811.
Info:Cable connection failed.
Info:Connecting to cable (Usb Port - USB21).
Info:Checking cable driver.
Info: Driver version: 1027 (1027).
Info: Driver windrvr6.sys version = 8.1.1.0.Info: WinDriver v8.11 Jungo (c) 1997
 - 2006 Build Date: Oct 16 2006 X86 32bit SYS 12:35:07, version = 811.
PORT_INDEX = 0.
CB_CABLE_COUNTER = 0.
DeviceAttach: Cable found for usb21.
Calling setinterface num=0, alternate=0.
DeviceAttach: received and accepted attach for:
  vendor id 0x3fd, product id 0x8, device handle 0x1fa0038
Info: Cable PID = 0008.
Info: Max current requested during enumeration is 300 mA.
Info:Type = 0x0004.
Info: Cable Type = 3, Revision = 0.
Info: Setting cable speed to 6 MHz.
Info:Cable connection established.
Info:Firmware version = 2301.
Info:File version of c:/Xilinx92i/data/xusb_xlp.hex = 1301.
Info:Firmware hex file version = 1301.
Info:write cmdbuffer failed C0000004.
Info:CPLD file version = 0012h.
Info:CPLD version = FFFEh.

JTAG chain configuration
--------------------------------------------------
Device   ID Code        IR Length    Part Name
 1       f5059093          16        XCF32P
 2       0a001093           8        System_ACE
 3       1127e093          14        XC2VP30

MicroBlaze Processor Configuration :
-------------------------------------
Version............................6.00.b
Optimization.......................Performance
Interconnect.......................OPB
MMU Type...........................No_MMU
No of PC Breakpoints...............2
No of Read Addr/Data Watchpoints...0
No of Write Addr/Data Watchpoints..0
Instruction Cache Support..........off
Data Cache Support.................off
Exceptions  Support................off
FPU  Support.......................off
Hard Divider Support...............off
Hard Multiplier Support............on - (Mul32)
Barrel Shifter Support.............off
MSR clr/set Instruction Support....on
Compare Instruction Support........on
Processor Could not be STOPPED -  Debug Operation requires Processor in STOP Sta
te.
        1. Try to reset the Processor and check if the Processor is Stopped
        2. Check your System Design for Correctness

Info: Cable is LOCKED. Retrying...
Connection to MDM UART Target Failed
Connected to "mb" target. id = 0
Starting GDB server for "mb" target (id = 0) at TCP port no 1234
XMD%
Redefine Technologies, Inc
0 Kudos
2 Replies
Historian
Historian
4,821 Views
Registered: ‎02-25-2008

Re: XMD can't connect to Microblaze


mvpratt wrote:

I've got a Microblaze design with a simple C program that Im trying to debug. The problem is that XMD won't connect to the processor.  I get an error message that the processor can't be stopped (see below for detailed message).  My design is normally operating at 2MHz system clock (need to clock slowly for a custom peripheral).  I noticed that if I increase the clock to 50MHz,  XMD works fine.  But I need to run the OPB at 2MHz due to a custom peripheral Im using.  Does anyone know why XMD would not connect when the system clock is very slow?  Alternatively, is it possible to have my peripheral OPB bus running at 2MHz while the rest of the system runs at 50MHz?



Is your 2 MHz clock fed into a DCM, and the DCM output drives the MicroBlaze? I'm too lazy to check the data sheet, but I don't think the DCM will work at that slow a clock frequency.

 

Second, with MicroBlaze designs the OPB must run at the processor clock speed.

 

-a

----------------------------Yes, I do this for a living.
0 Kudos
Observer mvpratt
Observer
4,816 Views
Registered: ‎11-13-2007

Re: XMD can't connect to Microblaze

I have a 32MHz external oscillator fed into a DCM with 2MHz output clocking the MB.  2MHz is the lower operating bound of the DCM according to the V2Pro datasheet, so Im definitely pushing it.

 

Mike

Redefine Technologies, Inc
0 Kudos