SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By andreas_h
#24710
Hi,
I'm a newbie.

I'm trying to program external flash on the STR710-EVAL board but I'm not successful.

I typically get error like:
Error: cfi.c:226 cfi_intel_wait_status_busy(): Block Erase Suspended
Error: cfi.c:214 cfi_intel_wait_status_busy(): status register: 0xff
Error: cfi.c:216 cfi_intel_wait_status_busy(): Block Lock-Bit Detected, Operat
ion Abort
Error: cfi.c:218 cfi_intel_wait_status_busy(): Program suspended
Error: cfi.c:220 cfi_intel_wait_status_busy(): Low Programming Voltage Detecte
d, Operation Aborted
Error: cfi.c:222 cfi_intel_wait_status_busy(): Program Error / Error in Settin
g Lock-Bit
Error: cfi.c:224 cfi_intel_wait_status_busy(): Error in Block Erasure or Clear
Lock-Bits
Error: cfi.c:226 cfi_intel_wait_status_busy(): Block Erase Suspended
Error: cfi.c:214 cfi_intel_wait_status_busy(): status register: 0x81
Error: cfi.c:387 cfi_intel_erase(): couldn't erase block 0 of flash bank at ba
se 0x60000000
Info: configuration.c:50 configuration_output_handler(): flash erase error
Error: armv4_5.c:584 armv4_5_run_algorithm(): timeout waiting for algorithm to
complete, trying to halt target
Info: configuration.c:50 configuration_output_handler(): failed writing file
71xboot-R10.bin to flash bank 0 at offset 0x00000000
Info: configuration.c:50 configuration_output_handler(): flash program error

Do anyone have a script that works for my setup or know what the problem might be?

The memory is of type M28W320CB
By Dominic
#24712
Hello Andreas,

the CFI code is only tested with Intel devices. While this ST flash claims to be Intel compatible, there might be differences that the current code doesn't know about.

Could you please send me a complete log (run with -d -l <logfile>) to Dominic.Rath <at> gmx.de?

Regards,

Dominic
By andreas_h
#24713
Hi Dominic,

I've email the info to you, have youu received it?

Andreas
By Dominic
#24714
Hello Andreas,

I've received your log, thanks.

One more question:
Which version of the OpenOCD did you use? There were some changes to the CFI code, and I want to make sure you got the latest code.

Regards,

Dominic
By andreas_h
#24715
I use the following version:

openocd-2006re115

Is this ok.
By Dominic
#24717
Ok, that's bad, because I've merged the CFI changes in revision 116 :)

Do you think you're able to compile the OpenOCD binary yourself? You're going to need a Cygwin installation with the GNU autotools and GCC. If this is too much trouble for you I can compile a binary for you later today (have to launch Windows in a VMware first, and that puts some burden on my system).

Regards,

Dominic
By andreas_h
#24718
I'm sorry I don't have cygwin on my computer I'd love to have the 116 release.

I would appriciate if you did it form me. I will try to do it, but I imagine that it will fail.
By Dominic
#24733
Hi,

I've put a new version online (that server is only for temporarly storage, so don't link to it): http://mmd.ath.cx/openocd_r122.exe

Regards,

Dominic
By andreas_h
#24755
Hi Dominic,

thank you very much for your help. I tried building it in Cygwin but I wasn't successful.

However the link you posted doesn't work. :cry:
By andreas_h
#24756
Hi Dominic,

I was able to download the file and run it, however it didn't work. :cry:
I have sent you a log file. Can you see if there is something wrong with my configuration files. :?
Andreas