summaryrefslogtreecommitdiff
path: root/src/flash/cfi.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-04-08 16:27:50 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-04-08 16:27:50 +0000
commita4ed84817116c473f398889ed3b54851a1e25a08 (patch)
treee05f8cdb726e1a8c52825681fa5bc0192b3ef30c /src/flash/cfi.c
parenteabb49b570290f2bcda80a0c591431b7ef240d43 (diff)
downloadopenocd+libswd-a4ed84817116c473f398889ed3b54851a1e25a08.tar.gz
openocd+libswd-a4ed84817116c473f398889ed3b54851a1e25a08.tar.bz2
openocd+libswd-a4ed84817116c473f398889ed3b54851a1e25a08.tar.xz
openocd+libswd-a4ed84817116c473f398889ed3b54851a1e25a08.zip
added a couple of LOG_ERROR() messages to improve logfile.
git-svn-id: svn://svn.berlios.de/openocd/trunk@548 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/cfi.c')
-rw-r--r--src/flash/cfi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/flash/cfi.c b/src/flash/cfi.c
index 3d830709..9c1910e5 100644
--- a/src/flash/cfi.c
+++ b/src/flash/cfi.c
@@ -354,6 +354,7 @@ int cfi_read_intel_pri_ext(flash_bank_t *bank)
target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command);
cfi_command(bank, 0xff, command);
target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command);
+ LOG_ERROR("Could not read bank flash bank information");
return ERROR_FLASH_BANK_INVALID;
}
@@ -407,6 +408,7 @@ int cfi_read_spansion_pri_ext(flash_bank_t *bank)
{
cfi_command(bank, 0xf0, command);
target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command);
+ LOG_ERROR("Could not read spansion bank information");
return ERROR_FLASH_BANK_INVALID;
}
@@ -475,6 +477,7 @@ int cfi_read_atmel_pri_ext(flash_bank_t *bank)
{
cfi_command(bank, 0xf0, command);
target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command);
+ LOG_ERROR("Could not read atmel bank information");
return ERROR_FLASH_BANK_INVALID;
}
@@ -1935,6 +1938,7 @@ int cfi_probe(struct flash_bank_s *bank)
target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command);
cfi_command(bank, 0xff, command);
target->type->write_memory(target, flash_address(bank, 0, 0x0), bank->bus_width, 1, command);
+ LOG_ERROR("Could not probe bank");
return ERROR_FLASH_BANK_INVALID;
}