I'm using an Olimex ARM-USB-OCD.  Target is a MIPS based router chip?
openocd seems to be working, it is just painfully slow. It took 15
minutes to download uboot.

> load_image /home/apps/u-boot/uboot.bin  0x80200000 bin
99772 bytes written at address 0x80200000
downloaded 99772 bytes in 900.955444s (0.108 KiB/s)



source [find interface/arm-usb-ocd.cfg]

set  _CHIPNAME rt5350
set  _ENDIAN little
set _CPUTAPID 0x1535024f

#daemon configuration
telnet_port 4444
gdb_port 3333

#jtag_speed
adapter_khz 8000

adapter_nsrst_delay 100
jtag_ntrst_delay 100

# jtag scan chain
# format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag newtap $_CHIPNAME cpu -irlen 5  -ircapture 0x1 -irmask 0x3
-expected-id $_CPUTAPID

set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
target create $_TARGETNAME mips_m4k -endian $_ENDIAN -chain-position
$_TARGETNAME

$_TARGETNAME configure -work-area-phys 0x80040000 -work-area-size 4096
$_TARGETNAME configure -event reset-init {
  #reset
  halt
  echo "init SDRAM controller.."
  mww 0x10000300 0xd1825282
  mww 0x10000304 0xe0120300
# load_image /home/apps/u-boot/u-boot.bin 0x80000000 bin
# resume 0x80000000
}

reset_config trst_and_srst

--
Jon Smirl
[email protected]

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to