Hi,
I am trying to access the flash in my iMote2.
I am using a Olimex JTAG ARM-Tiny-USB interface with openocd in Ubuntu.
When I start the openocd, it gives the following error,
Open On-Chip Debugger 1.0 (2009-11-20-12:42) svn:516
$URL: http://svn.berlios.de/svnroot/repos/ope … /openocd.c $
Info: jtag.c:1329 jtag_examine_chain(): JTAG device found: 0x79265013 (Manufacturer: 0x009, Part: 0x9265, Version: 0x7)
Warning: jtag.c:1157 jtag_check_value(): value captured during scan didn’t pass the requested check: captured: 0x00 check_value: 0x02 check_mask: 0x07
Warning: jtag.c:1117 jtag_read_buffer(): in_handler reported a failed check
Error: xscale.c:804 xscale_write_dcsr(): JTAG error while writing DCSR
But I am able to telnet to localhost 4444 and I am able to get the flash info etc (flash erase_check, flash protect_check, flash info & all works fine!!!).
But when I tried to erase a sector/write into any erased sector, it gave the following error,
flash erase_sector 0 243 243
status register: 0xfe
Block Lock-Bit Detected, Operation Abort
Program suspended
Low Programming Voltage Detected, Operation Aborted
Program Error / Error in Setting Lock-Bit
Error in Block Erasure or Clear Lock-Bits
Block Erase Suspended
couldn’t erase block 243 of flash bank at base 0x0
failed erasing sectors 243 to 243 (-902)
Can Anybody tell me what could go wrong here ?
I am attaching the config file which I used for openocd. Please have a look.
Also, is there any version of JMMFlash which works with USB interface ?
Please advise …
Thanks in advance
Jithin Jose
The openocd config file i used is
telnet_port 3333
gdb_port 4444
#interface
interface ft2232
ft2232_layout olimex-jtag
ft2232_vid_pid 0x15BA 0x0004
ft2232_device_desc "Olimex OpenOCD JTAG TINY"
ft2232_latency 10
jtag_speed 0
#jtag_khz 17000 kHz
#jtag_khz 0 kHz
# set jtag_nsrst_delay to the delay introduced by your reset circuit
# the rest of the needed delays are built into the openocd program jtag_nsrst_delay 1000
# set the jtag_ntrst_delay to the delay introduced by a reset circuit
# the rest of the needed delays are built into the openocd program
jtag_ntrst_delay 0
#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst separate
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 7 0x1 0x7f 0x7e
#target configuration
daemon_startup reset
target xscale little reset_halt 0 pxa27x
# maps to PXA internal RAM. If you are using a PXA255
# you must initialize SDRAM or leave this option off
working_area 0 0x5c000000 0x10000 nobackup
run_and_halt_time 0 30
#flash bank <driver> <base> <size> <chip_width> <bus_width>
# works for StrataFlash on PXA271
flash bank cfi 0x00000000 0x2000000 2 2 0
flash auto_erase on
The OpenOCD log file with debug info can be found at
http://www.cse.ohio-state.edu/~jose/public/logfile.txt
Please help me … !!!
Thanks in advance
Jithin Jose