Microblaze + uClinux issues

Hi all,

I've been struggling for two days now to get xapp730 from Xilinx to work. I've built the hw (wo FSL as it seems to be confusing the debugger) and can communicated with the CPU via xmd. However, the dow command seems to be failing. See transcript of xmd session below.

Any help or input is very much apprechiated.

Best regards,

Johan Thelin

--- 8< --- Address Map for Processor microblaze_0 (0x00000000-0x00001fff) dlmb_cntlr dlmb (0x00000000-0x00001fff) ilmb_cntlr ilmb (0x24000000-0x27ffffff) DDR_SDRAM_64Mx32 mb_opb (0x24000000-0x27ffffff) DDR_SDRAM_64Mx32 ixcl (0x24000000-0x27ffffff) DDR_SDRAM_64Mx32 dxcl (0x40000000-0x4000ffff) LEDs_4Bit mb_opb (0x40020000-0x4002ffff) Push_Buttons_Position mb_opb (0x40600000-0x4060ffff) RS232_Uart mb_opb (0x40800000-0x4080ffff) IIC_EEPROM mb_opb (0x40c00000-0x40c0ffff) Ethernet_MAC mb_opb (0x41200000-0x4120ffff) opb_intc_0 mb_opb (0x41400000-0x4140ffff) debug_module mb_opb (0x41800000-0x4180ffff) SysACE_CompactFlash mb_opb (0x41c00000-0x41c0ffff) opb_timer_1 mb_opb

Connecting to cable (Parallel Port - LPT1). Checking cable driver. Driver windrvr6.sys version = 7.0.0.0.No resources. LPT base address = 0378h. ECP base address = 0778h. Cable connection failed. Connecting to cable (Parallel Port - LPT1). Checking cable driver. Driver windrvr6.sys version = 7.0.0.0. LPT base address = 0378h. ECP base address = 0778h. Cable connection failed. Connecting to cable (Parallel Port - LPT2). Checking cable driver. Driver windrvr6.sys version = 7.0.0.0.Cable connection failed. Connecting to cable (Parallel Port - LPT2). Checking cable driver. Driver windrvr6.sys version = 7.0.0.0.Cable connection failed. Connecting to cable (Usb Port - USB22). Checking cable driver. Driver xusbdfwu.sys version: 1021 (1021). Driver windrvr6.sys version = 7.0.0.0.Calling setinterface num=0, alternate=0. DeviceAttach: received and accepted attach for: vendor id 0x3fd, product id 0x8, device handle 0x16726b4 Cable PID = 0008. Max current requested during enumeration is 280 mA. Cable Type = 3, Revision = 0. Setting cable speed to 6 MHz. Cable connection established. Firmware version = 1021. CPLD file version = 0012h. CPLD version = 0012h.

JTAG chain configuration

-------------------------------------------------- Device ID Code IR Length Part Name 1 0a001093 8 System_ACE 2 05059093 16 XCF32P 3 01e58093 10 XC4VFX12 4 09608093 8 xc95144xl Assuming, Device No: 3 contains the MicroBlaze system Connected to the JTAG MicroProcessor Debug Module (MDM) No of processors = 1

MicroBlaze Processor 1 Configuration :

------------------------------------- Version............................5.00.a No of PC Breakpoints...............2 No of Read Addr/Data Watchpoints...0 No of Write Addr/Data Watchpoints..0 Instruction Cache Support..........on Instruction Cache Base Address.....0x24000000 Instruction Cache High Address.....0x27ffffff Data Cache Support.................on Data Cache Base Address............0x24000000 Data Cache High Address............0x27ffffff Exceptions Support................off FPU Support.......................off FSL DCache Support.................on FSL ICache Support.................on Hard Divider Support...............on Hard Multiplier Support............on Barrel Shifter Support.............on MSR clr/set Instruction Support....on Compare Instruction Support........on PVR Supported......................off 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 XMD% state Connected targets state

Target ID State Target Type

----------------------------------------------------------

0 Stopped MicroBlaze MDM-based (hw) Target XMD% mrd 0x24000000 100 24000000: FFFFFDFF 24000004: FFFFFFFF 24000008: FFFFFFFF 2400000C: FFFFFEFF 24000010: FFDFFFFF 24000014: FFFFFFFF 24000018: FFFFFFFF 2400001C: FFFFFFFF 24000020: FFFFFFFF 24000024: FFFF7FFF 24000028: BFFFFBFF 2400002C: FFFFFFFF 24000030: FFFFF7FF 24000034: FFFFFFFF 24000038: FFFFFFFE 2400003C: FFFFFFFF 24000040: FFFFFDFF 24000044: FFFFFFF7 24000048: FFFFFFFF 2400004C: FFFFFFFF 24000050: FFFF7FFF 24000054: FFFFFFFF 24000058: FFFFBFFF 2400005C: FFFFFFFF 24000060: FFFFFFFF 24000064: FFFFFFFF 24000068: FFFFFBFF 2400006C: FFFFFFFF 24000070: FFFFDDFF 24000074: FFFFF7FF 24000078: FFFFFFFF 2400007C: FFFFFFFF 24000080: FFFFFFFF 24000084: 7FFFFFFF 24000088: FFFFFFFF 2400008C: FFFFFFFF 24000090: FDFFFFFF 24000094: FFFFFFFF 24000098: FFFFFFFF 2400009C: FFFFFFFF 240000A0: FFFFFFFF 240000A4: FFFFFFFF 240000A8: FFFFFFFF 240000AC: FFFFFFFF 240000B0: FFFF7FFD 240000B4: FFFFFFFF 240000B8: BFFFFFFF 240000BC: BFFFFFFF 240000C0: FFFFFFFF 240000C4: FFFFF77F 240000C8: FFFFFBFF 240000CC: FFFFFFFF 240000D0: FFDFFFFF 240000D4: FFFFFFFF 240000D8: FFFEFFFF 240000DC: FFFFFFBF 240000E0: FFFFFFFF 240000E4: FFFFFFDF 240000E8: FFFFFBFF 240000EC: FBFFFFFF 240000F0: FFFFFFFF 240000F4: FFFFFFFF 240000F8: FFFFFFFF 240000FC: FFFFFFFF 24000100: FFFFFFFF 24000104: FFDFFFFF 24000108: FFEFFBFF 2400010C: FFFFFFFF 24000110: FFFFFFFF 24000114: F7FFFFFF 24000118: FFFFFFFF 2400011C: FFFFFFFF 24000120: FFFFFFFF 24000124: FFF7FFDF 24000128: FFFFFFFF 2400012C: FFFFFFFF 24000130: FFFFFFFF 24000134: FFFFFFFF 24000138: FFFFFBFF 2400013C: FFFFFFFF 24000140: FFFFDFFF 24000144: FFFFFFFF 24000148: BFFFFFFF 2400014C: FEFFFFFF 24000150: FFFFFFFF 24000154: FFFFFFFF 24000158: FFFFFFFF 2400015C: EFFFFFFF 24000160: FFFFFFFF 24000164: FFFFFFFF 24000168: FFFFBEFF 2400016C: FFFFFFFF 24000170: FFFFFDFF 24000174: FFFFFFFF 24000178: FFFFFFFF 2400017C: FFFFFFFF 24000180: FFFFFFFF 24000184: FFFFFDFF 24000188: FFFFFEFF 2400018C: FFFFFFFF

XMD% mwr 0x24000000 1 XMD% mrd 0x24000000 1

24000000: 00000001

XMD% dow -data image.bin 0x24000000 XMD% mrd 0x24000000 100

24000000: 00000001 24000004: FFFFFFFF 24000008: FFFFFFFF 2400000C: FFFFFEFF 24000010: FFDFFFFF 24000014: FFFFFFFF 24000018: FFFFFFFF 2400001C: FFFFFFFF 24000020: FFFFFFFF 24000024: FFFF7FFF 24000028: BFFFFBFF 2400002C: FFFFFFFF 24000030: FFFFF7FF 24000034: FFFFFFFF 24000038: FFFFFFFE 2400003C: FFFFFFFF 24000040: FFFFFDFF 24000044: FFFFFFF7 24000048: FFFFFFFF 2400004C: FFFFFFFF 24000050: FFFF7FFF 24000054: FFFFFFFF 24000058: FFFFBFFF 2400005C: FFFFFFFF 24000060: FFFFFFFF 24000064: FFFFFFFF 24000068: FFFFFBFF 2400006C: FFFFFFFF 24000070: FFFFDDFF 24000074: FFFFF7FF 24000078: FFFFFFFF 2400007C: FFFFFFFF 24000080: FFFFFFFF 24000084: 7FFFFFFF 24000088: FFFFFFFF 2400008C: FFFFFFFF 24000090: FDFFFFFF 24000094: FFFFFFFF 24000098: FFFFFFFF 2400009C: FFFFFFFF 240000A0: FFFFFFFF 240000A4: FFFFFFFF 240000A8: FFFFFFFF 240000AC: FFFFFFFF 240000B0: FFFF7FFD 240000B4: FFFFFFFF 240000B8: BFFFFFFF 240000BC: BFFFFFFF 240000C0: FFFFFFFF 240000C4: FFFFF77F 240000C8: FFFFFBFF 240000CC: FFFFFFFF 240000D0: FFDFFFFF 240000D4: FFFFFFFF 240000D8: FFFEFFFF 240000DC: FFFFFFBF 240000E0: FFFFFFFF 240000E4: FFFFFFDF 240000E8: FFFFFBFF 240000EC: FBFFFFFF 240000F0: FFFFFFFF 240000F4: FFFFFFFF 240000F8: FFFFFFFF 240000FC: FFFFFFFF 24000100: FFFFFFFF 24000104: FFDFFFFF 24000108: FFEFFBFF 2400010C: FFFFFFFF 24000110: FFFFFFFF 24000114: F7FFFFFF 24000118: FFFFFFFF 2400011C: FFFFFFFF 24000120: FFFFFFFF 24000124: FFF7FFDF 24000128: FFFFFFFF 2400012C: FFFFFFFF 24000130: FFFFFFFF 24000134: FFFFFFFF 24000138: FFFFFBFF 2400013C: FFFFFFFF 24000140: FFFFDFFF 24000144: FFFFFFFF 24000148: BFFFFFFF 2400014C: FEFFFFFF 24000150: FFFFFFFF 24000154: FFFFFFFF 24000158: FFFFFFFF 2400015C: EFFFFFFF 24000160: FFFFFFFF 24000164: FFFFFFFF 24000168: FFFFBEFF 2400016C: FFFFFFFF 24000170: FFFFFDFF 24000174: FFFFFFFF 24000178: FFFFFFFF 2400017C: FFFFFFFF 24000180: FFFFFFFF 24000184: FFFFFDFF 24000188: FFFFFEFF 2400018C: FFFFFFFF

XMD%

--- >8 ---

Reply to
e8johan
Loading thread data ...

Hej Johan,

Do you have a file called xmd_.opt in the directory download? replace with the name of the microblaze instance from the .mhs file. It can contain automatically settings which mess up the XMD communication. This file get automatically used if you click on the XMD icon in XPS.

MVH Göran

Reply to
Göran Bilski

Hej Johan,

Forgot to tell you to delete or rename that file if you have it.

MVH Göran

Reply to
Göran Bilski

Hi G=F6ran,

Thanks for the quick reply - but the trick was to not be stupid. When synthesizing the route and place tool reports timing met, but the timing analysis tells me that the system cannot be run at 100MHz (which xapp730 claims). Reducing the clock to 66.67MHz made everything work as intended.

MVH Johan

snipped-for-privacy@cnn.xsj.xilinx.com...

on.

Reply to
e8johan

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.