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.

CCS/SW-TM4C: Tiva C flash memory read out protection

Part Number: SW-TM4C

Tool/software: Code Composer Studio

Hello. I made a new board with tiva c MCU. Now i need to protect whole firmware of reading via debug port. I try next code, but it crash execution.

    FlashProtectSet(0, FlashExecuteOnly));
    FlashProtectSave();

How to do it correctly?