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.

MSPM0G3507: MSPM0G3507 Flash operations

Part Number: MSPM0G3507

Tool/software:

Hi TI,

   I've observed a scenario. 

First I'm erasing the sector where I'm intended to write. So after erase that sector area which it belongs to will be locked(according to datasheet) but I'm locking all the regions explicitly by giving maximum to PROT A,B,C. My interest is only Main flash area no bootloader nothing.

FLASHCTL->GEN.CMDWEPROTA = FLASHCTL_CMDWEPROTA_VAL_MASK | FLASHCTL_CMDWEPROTA_VAL_MAXIMUM;
    FLASHCTL->GEN.CMDWEPROTB = FLASHCTL_CMDWEPROTB_VAL_MASK | FLASHCTL_CMDWEPROTB_VAL_MAXIMUM;
    FLASHCTL->GEN.CMDWEPROTC = FLASHCTL_CMDWEPROTC_VAL_MASK | FLASHCTL_CMDWEPROTC_VAL_MAXIMUM;

Then I'm blank verifying the region if it's true then I'm trying to write some data in this write api when I'm check if the flash is locked or not then I'm getting it as false 

return ((FLASHCTL->GEN.CMDWEPROTA == FLASHCTL_CMDWEPROTA_VAL_MAXIMUM)
            && (FLASHCTL->GEN.CMDWEPROTB == FLASHCTL_CMDWEPROTB_VAL_MAXIMUM)
            && (FLASHCTL->GEN.CMDWEPROTC == FLASHCTL_CMDWEPROTC_VAL_MAXIMUM));
 Why lock is not happening.
Also why the last 8 bytes of the flash is not accesible for operations..?