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-H

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


# armada388 -- support for the Marvell Armada/388 CPU family
# Xue Liu <>

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

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

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

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.
dap apsel 1

or download from here

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: Logo

You are commenting using your 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