This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

28027 Flash_Erase sector problem

I want to program my flash to store 100 data. So I have to use function Flash2802x_Erase first.

The datasheet explain this function like this:

extern Uint16 Flash2802x_Erase(
Uint16 SectorMask, // Sector mask
FLASH_ST *FEraseStat // Pointer to the status structure
);

Uint16 SectorMask Sector Mask value: Set bits indicate which sectors will be erased.

Bit F2802x
0 A
1 B
2 C
3 D
14:4 ignored

My question is i just want to erase 100 data flash, but when i use function like Flash_Erase((SECTORC),&FlashStatus); 

It always erase all the flash from 0x3F2000 to 0x3F4000, all the 2000 data. This is a big problem to me.

I don't find  any way how to change this in the datasheet. Can anybody tell me how to change this?

Thank you very much.

Jason