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.

TMS320F28P650DK: Confused about flash sector erase and bank erase

Part Number: TMS320F28P650DK
Other Parts Discussed in Thread: TMS320F280039, C2000WARE

Tool/software:

Hi, TI's Flash API engineers.

    I am reserching about the method of using 28p65x flash api recently. When I read the  Reference Guide, which is named  'TMS320F28P65x Flash API Version 3.00.02.00', I feel confused about the erasing opration of this device. Mentioned in the Reference Guide, section 4.2 and 4.3, Could I understand the flash erase sector and flash erase bank are two different opration? To be more specific, can I just erase some specific sectors of a flash bank?

  • And I found a difference about the FLASH_API between 28p65x with orther C28x series MCU. Why the function Fapi_issueBankEraseCommand does not have the argument 'uint16 oSectorMask' in 28p65x series but have in orther c28x series like TMS320F280039? Following, the Figure 1. indicates the FLASH API of the 28p65x, the Figure 2. indicates that in 280039.

    Figure 1.

  • Hi 

     Mentioned in the Reference Guide, section 4.2 and 4.3, Could I understand the flash erase sector and flash erase bank are two different opration? 

    --> Yes Bank Erase and Sector erase are two different operations. Bank Erase api will erase entire bank whereas sector erase will erase only one sector  equivalent to sector size(0x400, 1k x 16). Refer  Flash Memory Map in datasheet.

    To be more specific, can I just erase some specific sectors of a flash bank?

    --> Yes you can erase specific sectors.

    Why the function Fapi_issueBankEraseCommand does not have the argument 'uint16 oSectorMask' in 28p65x series but have in orther c28x series like TMS320F280039? 

    --> oSectorMask is still present in F28p65x as well. We can set mask using  Fapi_setupBankSectorEnable() API.

    Refer Flash API user guide for more details. You can also refer Flash API usage example in C2000ware "<C2000ware Install path\driverlib\f28p65x\examples\c28x_dual\flash>" 

    Thanks & Regards,

    Rajeshwary

  • Hi, Rajeshwary.

    Thanks a lot for answering my questions. Now my doubts have been dispelled.

    Thanks & Regards,

    MingBo Song

  • Glad that your doubts are cleared.

    Regards,

    Rajeshwary