I use a sector H to store parameters.
I erase sector H every time:
Flash_Erase((SECTORH),&FlashStatus);
then program data:
Flash_ptr = (Uint16 *) 0x3F8000;
Length = 30;
Status = Flash_Program(Flash_ptr,MB_Data,Length,&FlashStatus);
I use this method in TMS320F28022,023,026,027and 28032. it work correctly(the" Flash_ptr" and "SECTORH" is modfiy correctly)。
But it fail in 28035:
Program data is success first time (because sector H is all 0xFFFF).
But can't erase H again by:Flash_Erase((SECTORH),&FlashStatus);
I test many times,get the result:
Sector E,F,G,H can erase only by:Flash_Erase((SECTORD),&FlashStatus);
that is erase D will erase D\E\F\G\H.
Please suggest!
jiucai.lai