2009년 8월 24일 월요일

very hard str91x' environment; eclipse + openocd + codesourcery + armusbocd

#debug options
#debug_level 3

telnet_port 4444
tcl_port 6666
gdb_port 3333

# tell gdb our flash memory map
# and enable flash programming
gdb_memory_map enable
gdb_flash_program enable

#interface
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG A"
ft2232_layout "olimex-jtag"
ft2232_vid_pid 0x15BA 0x0003

jtag_speed 4
jtag_nsrst_delay 100
jtag_ntrst_delay 100

#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 8 0x1 0x1 0xfe
jtag_device 4 0x1 0xf 0xe
jtag_device 5 0x1 0x1 0x1e

#target configuration
daemon_startup reset

#target
#target arm7tdmi
target arm966e little run_and_init 1 arm966e

run_and_halt_time 0 30

working_area 0 0x50000000 16384 nobackup

#flash bank str9xpec 0x00000000 0x00080000 0 0 0
flash bank str9x 0x00000000 0x00080000 0 0 0 # 512k
flash bank str9x 0x00080000 0x00008000 0 0 0 # 32k

#target_script 0 reset event/str912_reset.script
#target_script 0 reset ./str91x_flash.script

# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger

***************************************************************************
target remote localhost:3333
monitor reset
monitor sleep 500
monitor poll
monitor soft_reset_halt
monitor arm7_9 force_hw_bkpts enable

# Set SRAM size to 96 KB
monitor mww 0x5C002034 0x0197
monitor mdw 0x5C002034

# Set Flash, Bank0 size to 512 KB
monitor mww 0x54000000 0xf

load
break main
continue

!!!!!!!!!!!!!!!!! => error erasing flash with vFlashErase packet !!!!!!!!!!!!!!!!!

댓글 없음:

댓글 쓰기