Hi,

I want to use openocd to reflash PXA270 board (Colibri by Toradex). I am using JTAGKey-Tiny interface (by Amontec). I can connect the board but I always get the error message: 'time out writing RX register'. Here is the output for 'reset' and 'flash info 0':

 > reset
JTAG tap: pxa270.cpu tap/device found: 0x79265013 (mfg: 0x009, part: 0x9265, ver: 0x7)
Failed to receiving data from debug handler after 1000 attempts
time out writing RX register
 > flash info 0
time out writing RX register
Command handler execution failed
in procedure 'flash' called at file "command.c", line 650
called at file "command.c", line 361
 >

Attached you will find my config files.
Thank you for your help!
Best regards,

Áron

source [find interface/jtagkey.cfg]
source [find board/colibri.cfg]


# Toradex Colibri PXA270
source [find target/pxa270.cfg]
reset_config trst_and_srst
#jtag_rclk 8


# CS0, CS1 -- two banks of CFI flash, 32 MBytes each
# each bank is 32-bits wide, two 16-bit chips in parallel
set _FLASHNAME $_CHIPNAME.flash
flash bank _FLASHNAME cfi 0x00000000 0x02000000 2 4 $_TARGETNAME
#init



#
# Amontec JTAGkey
#
# http://www.amontec.com/jtagkey.shtml
#

interface ft2232
ft2232_device_desc "Amontec JTAGkey"
ft2232_layout jtagkey
ft2232_vid_pid 0x0403 0xcff8


#Marvell/Intel PXA270 Script

if { [info exists CHIPNAME] } {
   set  _CHIPNAME $CHIPNAME
} else {
   set  _CHIPNAME pxa270
}

if { [info exists ENDIAN] } {
   set  _ENDIAN $ENDIAN
} else {
   set  _ENDIAN little
}

#IDs for pxa270. Are there more?
if { [info exists CPUTAPID ] } {
   set _CPUTAPID $CPUTAPID
} else {
  # set useful default
   set _CPUTAPID 0x49265013
}

if { [info exists CPUTAPID2 ] } {
   set _CPUTAPID2 $CPUTAPID2
} else {
  # set useful default
   set _CPUTAPID2 0x79265013
}


# 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 260
# 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 250

set _TARGETNAME $_CHIPNAME.cpu
jtag newtap $_CHIPNAME cpu -irlen 7 -ircapture 0x1 -irmask 0x7f -expected-id 
$_CPUTAPID -expected-id $_CPUTAPID2

target create $_TARGETNAME xscale -endian $_ENDIAN -chain-position $_TARGETNAME 
-variant pxa27x
# maps to PXA internal RAM. If you are using a PXA255
# you must initialize SDRAM or leave this option off
$_TARGETNAME configure -work-area-phys 0x5c000000 -work-area-size 0x10000 
-work-area-backup 0


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

Reply via email to