2
0
mirror of git://git.code.sf.net/p/openocd/code synced 2025-07-20 03:54:05 +10:00
openocd/tcl/board/osk5912.cfg
David Brownell 41c1af7c67 initial builds of OSK5912 boards need srst_pulls_trst
This is clearly noted in the hardware spec (section 5.2.3); it
works around a chip erratum:  "If the MPU_RESET signal is used,
it may cause the EMIFS bus to lock."

I seem to have a board with such an initial build.  The chip
is labeled XOMAP.  Presumably, parts without that "X" prefix
(eXperimental) resolve this.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-08 13:15:18 -07:00

33 lines
1.1 KiB
INI

# http://omap.spectrumdigital.com/osk5912/
source [find target/omap5912.cfg]
# NOTE: this assumes you're using the ARM 20-pin ("Multi-ICE")
# JTAG connector, and accordingly have J1 connecting pins 1 & 2.
# The TI-14 pin needs "trst_only", and J1 connecting 2 & 3.
reset_config trst_and_srst separate
# NOTE: boards with XOMAP parts wire nSRST to nPWRON_RESET.
# That resets everything -- including JTAG and EmbeddedICE.
# So they must use "reset_config srst_pulls_trst".
# NOTE: an expansion board could add a trace connector ... if
# it does, change this appropriately. And reset_config too,
# assuming JTAG_DIS reroutes JTAG to that connector.
etm config $_TARGETNAME 8 demultiplexed full dummy
etm_dummy config $_TARGETNAME
# standard boards populate two 16 MB chips, but manufacturing
# options or an expansion board could change this config.
flash bank cfi 0x00000000 0x01000000 2 2 $_TARGETNAME
flash bank cfi 0x01000000 0x01000000 2 2 $_TARGETNAME
proc osk5912_init {} {
omap5912_reset
# detect flash
flash probe 0
flash probe 1
}
$_TARGETNAME configure -event reset-init { osk5912_init }