disable cfi_write_words(). Broken for spansion, fallback
is a slower codepath that is reported to work. git-svn-id: svn://svn.berlios.de/openocd/trunk@331 b42882b7-edfa-0310-969c-e2dbd0fdcd60__archive__
parent
2fe9bf1613
commit
379f0b0b9b
|
@ -1745,6 +1745,8 @@ int cfi_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count)
|
|||
{
|
||||
INFO("Programming at %08x, count %08x bytes remaining", write_p, count);
|
||||
}
|
||||
#if 0
|
||||
/* NB! this is broken for spansion! */
|
||||
if ((count > bufferwsize) && !(write_p & buffermask))
|
||||
{
|
||||
retval = cfi_write_words(bank, buffer, bufferwsize, write_p);
|
||||
|
@ -1756,6 +1758,7 @@ int cfi_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count)
|
|||
count -= buffersize;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
for (i = 0; i < bank->bus_width; i++)
|
||||
current_word[i] = 0;
|
||||
|
|
Loading…
Reference in New Issue