Bug in software/tools/vme-flasher/svec-flasher.c
This bug makes Flash programming fail on SVEC v3
The reason is an incomplete initialization of the sector_map
memory, which leeds to some Flash sectors not beeing erased before writing.
Bugfix:
change line 253 of software/tools/vme-flasher/svec-flasher.c
from:
memset(sector_map, 0, sizeof(sector_map));
to:
memset(sector_map, 0, sizeof(int) * FLASH_SIZE / sector_size);
Explanation:
sizeof(sector_map)
returns the size of the pointer to the sector_map
, not the size of the sector_map
itself. This leads to an incomplete initialization.