Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE
The line in Shared_Boot.c
status = Flash_Erase((SECTORA | SECTORB | SECTORC | SECTORD), &FlashStatus);
does not erase sector E-H. This might cause issues hard to track down in deployed control systems, as programming probably will seem to work fine on a blank device, and when writing small programs. The bug will probably only manifest when bits in the left out sectors are changed from 0 to 1.
I propose replacing the line with
status = Flash_Erase((SECTOR_F28335), &FlashStatus);
Please confirm whether this is a bug, and if the proposed fix is sufficient.
status = Flash_Erase((SECTORA | SECTORB | SECTORC | SECTORD), &FlashStatus);