Hi all,

I would like to ask for your help. I have a problem. I use olimex board with procesor LPC2919. I am not able to write to the flash.

[ code ]
2000 kHz
trst_and_srst srst_pulls_trst srst_gates_jtag trst_push_pull srst_open_drain
jtag_nsrst_delay: 200
jtag_ntrst_delay: 200
use of EmbeddedICE dbgrq instead of breakpoint for target halt enabled
dcc downloads are enabled
Info : max TCK change to: 30000 kHz
Info : clock speed 2000 kHz
Info : JTAG tap: lpc2919.cpu tap/device found: 0x0596802b (mfg: 0x015, part: 0x5968, ver: 0x0)
Info : Embedded ICE version 6
Info : lpc2919.cpu: hardware has 2 breakpoint/watchpoint units
Info : accepting 'telnet' connection from 0
Info : JTAG tap: lpc2919.cpu tap/device found: 0x0596802b (mfg: 0x015, part: 0x5968, ver: 0x0) Warn : srst pulls trst - can not reset into halted mode. Issuing halt after reset.
target state: halted
target halted in ARM state due to debug-request, current mode: System
cpsr: 0x8000001f pc: 0x20000334
Warn : NOTE! Severe performance degradation without working memory enabled.
Warn : NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'.
[ /code ]

When I put flash probe 0 for first time I get
Unknown LPC29xx derivative
unknown error when probing flash bank '#0' at 0x20000000

for second time :
flash 'lpc2900' found at 0x20000000

flash erase_sector 0 0 1
I get
*** [program] Segmentation fault

I am using Ubuntu 10.04 on virtual VMware PC. and openocd version is 0.4.0

Script file :
[code]
telnet_port 4444
gdb_port 3333
tcl_port 6666

interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H"
ft2232_layout olimex-jtag
ft2232_vid_pid 0x15ba 0x002a

jtag_khz 2000

set _CHIPNAME lpc2919
set _ENDIAN little
set _CPUTAPID 0x0596802b

reset_config trst_and_srst srst_pulls_trst

#reset_config trst_and_srst combined

# reset delays
jtag_nsrst_delay 200
jtag_ntrst_delay 200

set _TARGETNAME [format "%s.cpu" $_CHIPNAME]

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

# Createthe ".cpu" target
target create $_TARGETNAME arm966e -endian little -chain-position $_TARGETNAME -variant arm966e

#flash bank <driver> <base> <size> <chip_width> <bus_width>
flash bank lpc2900 lpc2900 0x20000000 0xC0000 0 0 $_TARGETNAME 112000
arm7_9 dbgrq enable
arm7_9 dcc_downloads enable

$_TARGETNAME configure -event reset-init {
# Use PLL
mww 0xFFFF8020 0x00000001 # XTAL_OSC_CONTROL: enable, 1-20 MHz
mww 0xFFFF8070 0x01000000 # SYS_CLK_CONF: Crystal
mww 0xFFFF8028 0x00000005 # PLL: (power down)
mww 0xFFFF8028 0x01060004 # PLL: M=7, 2P=2 (power up)
# --> f=112 MHz, fcco=224 MHz
sleep 100
mww 0xFFFF8070 0x02000000 # SYS_CLK_CONF: PLL

# Increase JTAG speed
jtag_khz 6000
}

reset init
[/code]

I have no problem with flashing LPC2144,LPC2129,LPC2148

Thank you
BR
Miroslav
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to