Hi MFM,
Your problem is:
unsigned long flash_init (void)
{
return (CFG_FLASH_SIZE);
}
Which is undoubtedly due to my suggestion in an other thread to stub out that routine.
See:
http://forum.niosforum.com/forum/index.php...700&#entry13700 (
http://forum.niosforum.com/forum/index.php?showtopic=3571&st=0&p=13700&#entry13700)
You need to restore the routine to its original state now that you're using a board with an LV065D flash
device:
unsigned long flash_init (void)
{
int i;
unsigned long addr;
flash_info_t *fli = &flash_info;
fli->size = CFG_FLASH_SIZE;
fli->sector_count = CFG_MAX_FLASH_SECT;
fli->flash_id = FLASH_MAN_AMD + FLASH_AMDLV065D;
addr = CFG_FLASH_BASE;
for (i = 0; i < fli->sector_count; ++i) {
fli->start = addr;
addr += SECTSZ;
fli->protect = 1;
}
return (CFG_FLASH_SIZE);
}
This will always succeed at startup -- even if you don't provide the correct base address.
If the base address is incorrect, the utilities just won't work.
Regards,
--Scott