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.

TMS320F2800137: flashAP1_EXIIprogramming

Part Number: TMS320F2800137

Tool/software:

Hello, I have ported the code
The falsh related functions of flashAP1_EXIIprogramming
C:\Users\xiaohua\Desktop\013\x15\universal_motorcontrol_lab_f280013x, After discovering normal writing, it cannot be erased and then an error occurs
I selected Bzero_Sector64_start and tried the Instance-EraseSactor() function, but it still couldn't erase properly. Why is this? Is the protection configuration incorrect

  • Hi,

    From the screenshot, it is failing at FMSTAT due to CMDWEPROTB value is not set properly set for the sector to be erased.

    In CMDWEPROTB, each bit protects group of 8 sectors from erasing or programming.

    bit 0 -> 32 - 39 sector

    bit 1 -> 40 - 47 sector

    bit 2 -> 48 - 55 sectors

    bit 3 -> 56 - 63 sectors....etc

    If you are trying to erase sector 64 then you have to clear the bit 4 of CMDWEPROTB register.

    Regards,

    Rajeshwary