No need to run a git bisect :)

I have confirmed that my hunch was correct.

In

File: src/target/arm7_9_common.c
Function: arm7_9_checksum_memory
Line: 2825

crc_algorithm->address, crc_algorithm->address + (sizeof(arm7_9_crc_code) - 8), 
20000, &armv4_5_info)) != ERROR_OK)

I changed the timeout from 20s to 60s. This gave the algorithm enough time to 
calculate the CRC over 16 MByte and it succeeded.

My suggestion is that this function be rewritten so that the size of the file 
that needs to be checked is taken into account and that the CRC algorithm is 
run in for example 1 MByte chunks. Then a 20s timeout per chunk would be fine.

Regards,
Pieter

-----Original Message-----
From: Øyvind Harboe [mailto:oyvind.har...@zylin.com]
Sent: 03 November 2009 01:06 PM
To: Pieter Conradie
Cc: openocd-development@lists.berlios.de
Subject: Re: [Openocd-development] openocd-0.3.0-rc0 bug: Fail to write to 
Intel NOR Flash on AT91SAM9260

Pushed to master patch that inexplicably fixes the problem(improve
error handling and output for working area).

Hopefully once we track down the verify problem, we'll find the
real culprit....


--
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
Notice
This email is intended for the addressee only and may contain legally 
privileged and/or confidential information.  If you have received this email in 
error and are not the intended recipient, you are hereby informed that you are 
not entitled to read, broadcast, distribute or in any manner whatsoever use the 
contents of this email or any attachments thereto.  You are requested to please 
notify Psitek that you have received the email and then delete it.  Unless 
clearly stated otherwise, the content and sentiments expressed in this email or 
any attachments thereto are those of the sender and not of Psitek (Proprietary) 
Limited.  Psitek does not accept liability for any damages, loss or expense of 
any nature whatsoever arising (a) out of or in connection with the email or any 
attachments thereto and/or (b) from any act or omission by the recipient 
relying upon the content of the email or attachments.  Psitek further disclaims 
liability for any damages caused by computer and/or software viruses.  Should 
this email contain the terms of a contract, no binding agreement will result 
until such time as a written (hardcopy) document is signed on behalf of Psitek.
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to