X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Focl.c;h=6c609239b3c9e75cc56676e869a85e0acf7fd245;hb=d567df02b9f3e7d2e7e78b3c2907ecad9aa4bbd4;hp=5d93724814bf8762ea50b4c1012c3bee4aacb0bf;hpb=303b493c229475df26d69d102bbaf5ae5e5e7a3f;p=openocd.git diff --git a/src/flash/nor/ocl.c b/src/flash/nor/ocl.c index 5d93724814..6c609239b3 100644 --- a/src/flash/nor/ocl.c +++ b/src/flash/nor/ocl.c @@ -101,8 +101,6 @@ static int ocl_erase(struct flash_bank *bank, int first, int last) /* wait for response, fixed timeout of 1 s */ if ((retval = embeddedice_handshake(ocl->jtag_info, EICE_COMM_CTRL_WBIT, 1000) != ERROR_OK)) { - if (retval == ERROR_TARGET_TIMEOUT) - LOG_ERROR("loader not responding"); return retval; } @@ -206,8 +204,6 @@ static int ocl_write(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, /* wait for response, fixed timeout of 1 s */ if ((retval = embeddedice_handshake(ocl->jtag_info, EICE_COMM_CTRL_WBIT, 1000) != ERROR_OK)) { - if (retval == ERROR_TARGET_TIMEOUT) - LOG_ERROR("loader not responding"); free(dcc_buffer); return retval; } @@ -252,8 +248,6 @@ static int ocl_probe(struct flash_bank *bank) /* wait for response, fixed timeout of 1 s */ if ((retval = embeddedice_handshake(ocl->jtag_info, EICE_COMM_CTRL_WBIT, 1000) != ERROR_OK)) { - if (retval == ERROR_TARGET_TIMEOUT) - LOG_ERROR("loader not responding"); return retval; } @@ -353,6 +347,7 @@ struct flash_driver ocl_flash = { .erase = ocl_erase, .protect = ocl_protect, .write = ocl_write, + .read = default_flash_read, .probe = ocl_probe, .erase_check = ocl_erase_check, .protect_check = ocl_protect_check,