OpenOCD and ARMADA 388

Now I am playing a Clearfog Pro board and 802.11ac QCA9880 cards with OpenWRT trunk.

The ClearFog Pro board is the first open development kit SBC based on Marvell’s ARMADA 388 SoC. It includes 1GB RAM and a variety of I/O and connectivity technologies such as multiple mini-PCIe/mSATA sockets, audio/telephony module header, PoE expansion header and a not so popular interface called mikroBUS.

Since I have a OLIMEX ARM-USB-OCD-H adapter, I try to connect it with ClearFog Pro board.

In order to make openocd working for ClearFog Pro board, we need two config files for OLIMEX ARM-USB-OCD-H adapter and ARMADA 388.

Followings are configurations:

olimex-arm-usb-ocd.cfg

#
# Olimex ARM-USB-OCD-H
#
# http://www.olimex.com/dev/arm-usb-ocd-h.html
#

interface ftdi
ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-OCD-H"
ftdi_vid_pid 0x15ba 0x002b

ftdi_layout_init 0x0908 0x0b1b
ftdi_layout_signal nSRST -oe 0x0200
ftdi_layout_signal nTRST -data 0x0100
ftdi_layout_signal LED -data 0x0800

adapter_khz 40000
transport select jtag
ftdi_tdo_sample_edge falling

armada-388.cfg

#
# armada388 -- support for the Marvell Armada/388 CPU family
#
# Xue Liu <xue.liu@dks-koeln.de>

if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME armada388
}

if { [info exists CPUTAPID] } {
set _CPUTAPID $CPUTAPID
} else {
set _CPUTAPID 0x4ba00477
}

jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID

set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap

proc armada388_dbginit {target} {
cortex_a dbginit
}

$_TARGETNAME configure -event reset-assert-post "armada388_dbginit $_TARGETNAME"

# We need to init now, so we can run the apsel command.
init
dap apsel 1

or download from here

Advertisements
This entry was posted in armada-38x, Linux. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s