Cannot get QRY from CFI flash

After a couple of days trying, I do not know what to try next.

If someone has any ideas, I would be gratefull.

Platform: AT91R40008 with a AT49BV322D flash.

The flash is used to boot from.

I compiled the latest version on cygwin with the FTD2XX interface.

I am using the Amontec JTAGKey Tiny.

OpenOCD seams to connect to the interface correctly.

Also the target seams to be fine.

But whatever I do, it will fail at probing the flash.

Script:


tcl_port 6666

telnet_port 4444

gdb_port 3333

interface ft2232

ft2232_device_desc “Amontec JTAGkey A”

ft2232_layout jtagkey

ft2232_vid_pid 0x0403 0xcff8

jtag_khz 30

jtag_nsrst_delay 200

jtag_ntrst_delay 200

reset_config srst_only srst_pulls_trst

jtag newtap AT91R40008 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x1F0F0F0F

target create AT91R40008.cpu arm7tdmi -endian little -chain-position AT91R40008.cpu -variant arm7tdmi

AT91R40008.cpu configure -work-area-virt 0 -work-area-phys 0x3C000 -work-area-size 0x4000 -work-area-backup 0

flash bank cfi 0x10000000 0x00400000 2 2 AT91R40008.cpu

init

halt

mww 0xffe00000 0x1000203D # tried many settings already here

mww 0xffe00020 0x00000001

flash probe AT91R40008.cpu

shutdown


The result:


C:\openocd\t\trunk\src>openocd -f jtagkey-at91r40008.cfg

Open On-Chip Debugger 1.0 (2009-04-28-16:46) svn:1555

BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS

$URL: https://svn.berlios.de/svnroot/repos/op … /openocd.c $

30 kHz

Info : JTAG tap: AT91R40008.cpu tap/device found: 0x1f0f0f0f (Manufacturer: 0x78

7, Part: 0xf0f0, Version: 0x1)

Info : JTAG Tap/device matched

Warn : DBGACK set while target was in unknown state. Reset or initialize target.

target state: halted

target halted in ARM state due to breakpoint, current mode: User

cpsr: 0x80000050 pc: 0x00000408

Info : Flash Manufacturer/Device: 0x0006 0xea00

Error: Could not probe bank: no QRY

probing failed for flash bank ‘#AT91R40008.cpu’ at 0x10000000


I tried to remap it to different addresses, didnt work.

Tried many settings for the flash, didnt work.

Did not remap at all, didnt work.

Tried OpenOCD 0.1.0, didn’t work.

Any ideas are more than welcome.

Kind regards,

Rene

Problem solved. Write enable was disconnected.

I want to know how you solve the problem “Write enable was disconnected”,did you modify any files?

Thank you ,I will be waiting for your answer ,my email:danielustc@gmail.com

Write enable was disconnected