// bank->num_sectors = bank->size / 512; // Bank size is actually 0x2000, but it is set much higher as part of the workaround for byte/word addressing issues.
LOG_ERROR("%s: Flash bank cannot fit data.",__FUNCTION__);
returnERROR_FAIL;
}
if(offset%2){
LOG_ERROR("%s: Writing to odd addresses not supported. This chip uses word addressing, Openocd only supports byte addressing. The workaround results in disabling writing to odd byte addresses.",__FUNCTION__);
snprintf(buf,buf_size,"\ndsp5680xx flash driver info:\n - Currently only full erase/lock/unlock are implemented. \n - Call with bank==0 and sector 0 to 0.\n - Protect requires arp_init-reset to complete. \n - Before removing protection the master tap must be selected, and arp_init-reset is required to complete unlocking.");
returnERROR_OK;
}
/*
static int dsp5680xx_set_write_enable(struct target *target, int enable){
LOG_USER("%s not implemented",__FUNCTION__);
return ERROR_OK;
}
static int dsp5680xx_check_flash_completion(struct target* target, unsigned int timeout_ms){