STR7 external Flash

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

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 ) to Dominic.Rath gmx.de?

Regards,

Dominic

Hi Dominic,

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

Andreas

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

I use the following version:

openocd-2006re115

Is this ok.

Ok, that’s bad, because I’ve merged the CFI changes in revision 116 :slight_smile:

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

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.

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

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:

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

Hey,

Look at here buddy, [best flash for canon. This will help you a-lot. I also prefer this when i had similar problem. Thanks.

http://i64.tinypic.com/10f6mu8.png](bestoninternet.com - This website is for sale! - bestoninternet Resources and Information.)