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: TMS320F28P65x Flash API Question.

Part Number: TMS320F28P650DK


Tool/software:

Hi Sir

I have some questions when verifying the flashapi_128bitprogramming example. Is there any relevant information or instructions?

//============= 

FLASH_WRAPPER_PROGRAM_BASE 0x57000U Why is it 0x57000 
FLASH_O_CMDWEPROTA 0x11D0U Why is it 0x11D0U
FLASH_O_CMDWEPROTB 0x11D4U Why is it 0x11D4U
oReturnCheck = Fapi_initializeAPI(FlashTech_CPU0_BASE_ADDRESS, 200);  FlashTech_CPU0_BASE_ADDRESS = 0x57000U What does it do?

Fapi_setupBankSectorEnable(FLASH_WRAPPER_PROGRAM_BASE+FLASH_O_CMDWEPROTA, 0xFFFFFFFE);  Enable program/erase protection(0x57000 +0x11D0 = 0x 581D0) I don’t quite understand what he means. Does it need to be set to 1 to write or clear, or does it mean something else?
Fapi_setupBankSectorEnable(FLASH_WRAPPER_PROGRAM_BASE+FLASH_O_CMDWEPROTB, 0xFFFFFFFF);  Enable program/erase protection(0x57000 +0x11D4 = 0x 581D0) I don’t quite understand what he means. Does it need to be set to 1 to write or clear, or does it mean something else?

oReturnCheck = Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector, (uint32 *) Erase_address);  Erase_address = 0x0DE000 This will clear how long the data address is

oFlashStatus = Fapi_getFsmStatus(); This place will return exception message 17 (0000,0000,0001,0001), how to eliminate this

thanks.

  • Hi Wilson,

    I am assigned to this post now. 

    For above questions: They are all register addresses.  No need to change anything.  You can use as-is.

    For above questions: Please search for "CMDWEPROTA" in the F28P65x flash API guide for the details.

    For above question: It will erase only one sector.

    As per the STATCMD register details in the flash API guide, above error means that the flash operation (erase or program) failed due to the protection.  Meaning, you gave a erase or program command for the sector that is protected.

    Thanks and regards,

    Vamsi