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.

TMS320F28P550SJ: Possible to erase/program only one sector from 32 – 127 sectors?

Part Number: TMS320F28P550SJ
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi champs,

I am asking this for our customer.

The user wants to erase/program only one sector in 32 – 127 sectors.

From P10 of the flash API doc below, because of Fapi_setupBankSectorEnable(), where each bit in CMDWEPROTB is used to configure protection for 8 sectors together, it seems impossible to erase/program only one sector.

Is it correct?

If so, why do we have smaller sectors which can't be erased/programmed?

If not, would you please show us how to erase/program only one sector?

www.ti.com/.../sprujc5.pdf

  • Hi Wayne,

    To erase a single sector in the 32+ range, use the Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector,...) command. A demonstration can be found in the Example_EraseSector() function of the flashapi_128bit_programming example in C2000Ware.

    The protection masks determine whether or not a program/erase operation is allowed for the sector or group of sectors. For a bank erase operation using Fapi_issueBankEraseCommand(...), this does mean that a group of 8 is the lowest level of granularity for sectors 32+.

    Best,

    Alex