Forums

Unknown LPC29xx derivative [Olimex lpc2919]

Started by "jagan.dream" August 20, 2012
Hi !

I have an issue in flashing Olimex lpc2919 board, I use Olimex ARM-USB-OCD-H jtag to communicate. When try to access flash memory i got error.

OS - Ubuntu 10.04
Openocd -v 0.5.0
/* openocd output */

Open On-Chip Debugger 0.5.0 (2012-08-17-00:50)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter_nsrst_delay: 100
jtag_ntrst_delay: 50
2000 kHz
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
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: lpc2900.cpu tap/device found: 0x0596802b (mfg: 0x015, part: 0x5968, ver: 0x0)
Info : Embedded ICE version 6
Info : lpc2900.cpu: hardware has 2 breakpoint/watchpoint units
Info : accepting 'telnet' connection from 4444
2000 kHz
Info : JTAG tap: lpc2900.cpu tap/device found: 0x0596802b (mfg: 0x015, part: 0x5968, ver: 0x0)
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
lpc2900.cpu mww address data [count]
mww ['phys'] address value [count]
in procedure 'mww'

Warn : NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'.

/*****************************/

then i tried list of commands

> flash banks
#0 : lpc2900.flash (lpc2900) at 0x00000000, size 0x00000000, buswidth 0, chipwidth 0

> flash list
{name lpc2900 base 0 size 0 bus_width 0 chip_width 0}

when ever i try for "flash probe 0" i get same message

> flash probe 0
Unknown LPC29xx derivative (FEATxffffff:ffffffff:ffffffff:ffffffff)
auto_probe failed
in procedure 'flash'

/********** openocd.cfg ***********/

#daemon configuration###############################################################
telnet_port 4444
gdb_port 3333

#interface configuration############################################################
#
# Olimex ARM-USB-OCD-H
#
# http://www.olimex.com/dev/arm-usb-ocd.html
#

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

#board configuration################################################################
# Olimex LPC-P2919
# http://www.olimex.com/

# Delays on reset lines
jtag_nsrst_delay 100
jtag_ntrst_delay 50

# Maximum of 1/8 of clock frequency (XTAL = 16 MHz).
# Adaptive clocking through RTCK is not supported.
jtag_khz 2000

# Target device: LPC29xx with ETB
# The following variables are used by the LPC2900 script:
# HAS_ETB Must be set to 1. The CPU on this board has ETB.
# FLASH_CLOCK CPU frequency at the time of flash programming (in kHz)
set HAS_ETB 0
set FLASH_CLOCK 112000
source [find target/lpc2900.cfg]

# A working area will help speeding the flash programming
#$_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 0x2000 -work-area-backup 0

# Event handlers
$_TARGETNAME configure -event reset-start {
# Back to the slow JTAG clock
jtag_khz 2000
}

# External 16-bit flash at chip select CS7 (SST39VF3201-70, 4 MiB)
#flash bank cfi 0x5C000000 0x400000 2 2 $_TARGETNAME jedec_probe
$_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)
# --> f2 MHz, fcco"4 MHz
sleep 100
mww 0xFFFF8070 0x02000000 # SYS_CLK_CONF: PLL

# Increase JTAG speed
jtag_khz 6000
}
init
reset init

/****************************************************/

when i search for solution i come across a discussion " LPC2919 segmentation fault "
http://comments.gmane.org/gmane.comp.debugging.openocd.devel/14879

I tried the steps.

My memory dump of 16 bytes at address 0xE0000100 of the LPC2919.

> mdw 0xE0000100 16
0xe0000100: ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000000 00000000
0xe0000120: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

and the patches mentioned are up to date.

Please help me in resolving this issue.

Thanks & Regards,
Jagan.

An Engineer's Guide to the LPC2100 Series