I’m trying to figure out the proper config file for an S3C2410 (Arm920T) and wiggler clone. The OpenOCD sample configs had an arm7 wiggler example and an arm9 USB example, so I merged the two and came up with the config below for a single target.
Where I’m really stuck is in the CFI flash configuration. I have the no internal flash and the external is a K9F1208 (64M x 8). I searched the datasheet and couldn’t find any reference to CFI or JDEC so I’m assuming its not CFI.
A google search turned up a couple references to a patch that supports the s3c2410A with a config entry of:
flash bank s3c2410a 0 0 0 0 0
But I can’t find any reference to this in the OpenOCD pages. Anyone know if this is correct or, if not, what it should be?
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface parport
parport_port 0x378
parport_cable wiggler
jtag_speed 0
#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
#target configuration
daemon_startup reset
#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm9tdmi little reset_halt 0 arm920t
run_and_halt_time 0 5000
working_area 0 0x200000 0x4000 backup
#flash configuration
#flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
flash bank s3c2410a 0 0 0 0 0