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.

CC2538: Unable to erase flash with Flash Control Registers

Part Number: CC2538

Hi,

I am trying to erase the CCA (0x0027F800) via OpenOCD by using Flash Control Registers.

Set the flash page to be erased in FLASH_CTRL_FADDR

  mww 0x400D300C 0x1FE00

Enable UPPER_PAGE_ACCESS and start an erase operation by setting FCTL.ERASE bit to 1

  mww 0x400D3008 0x205

But after that, the CCA flash page remain unchanged.

Can anybody help me or point out what I am doing wrong?

Details about Flash Control Registers can be found in https://www.ti.com/lit/ug/swru319c/swru319c.pdf, section 8.10

Thank you in advance.