Hi, I used the following code to create write/erase protected data in flash page with adress 0x60000.
But after reprogramming chip this data has been erased. How to create erase/write protect for flash page in Tiva C?
static uint8_t hwRevWrCmd (char* cmdBuffer)
{
uint8_t hwRev[HW_REV_MSG_LEN] = "1.0.0"; // Write your HW revision
uint32_t tmp;
FlashErase(HW_REV_FLASH_ADRESS);
FlashProgram((uint32_t*)hwRev, HW_REV_FLASH_ADRESS, HW_REV_MSG_LEN);
FlashProtectSet(HW_REV_FLASH_ADRESS, FlashReadOnly);
FlashUserSave();
return CONSOLEPROCESS_STATE_INPUTCMD;
}