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.

Compiler/TM4C1231H6PM: How TM4C to Protect Read-Only Memory Region based on Attribute

Part Number: TM4C1231H6PM

Tool/software: TI C/C++ Compiler

We have the configuration of memory as following on FLASH1 and FLASH2.

When we want write value in to these regions by API from Flash API of Tiva Driver Library, we found these regions's value couldn't be changed.

We are happy to see it working, but we are curious about how it works? Is MPU configured in boot.asm? Or?

MEMORY CONFIGURATION

         name            origin    length      used     unused   attr    fill
----------------------  --------  ---------  --------  --------  ----  --------
  FLASH                 00002400   0001a400  00017816  00002bea  R  X
  DumpArea              0001c800   00000400  00000400  00000000  R  X  ffffffff 
  FLASH1                0001cc00   0001b400  00008776  00012c8a  R  X
  SRAM                  20000000   00008000  00007c7f  00000381  RW X


SEGMENT ALLOCATION MAP

run origin  load origin   length   init length attrs members
----------  ----------- ---------- ----------- ----- -------
00002400    00002400    0001781a   0001781a    r-x
  00002400    00002400    0000026c   0000026c    r-- .intvecs
  00002670    00002670    000175aa   000175aa    r-x .text
0001c800    0001c800    00008b78   00008b78    r-x
  0001c800    0001c800    00000400   00000400    r-- $fill000
  0001cc00    0001cc00    00005cac   00005cac    r-x .text2
  000228ac    000228ac    000029ca   000029ca    r-- .const
  00025278    00025278    00000100   00000100    r-- .cinit
20000000    20000000    00007c84   00000000    rw-
  20000000    20000000    0000026c   00000000    rw- .vtable
  20000270    20000270    00006777   00000000    rw- .bss
  200069e8    200069e8    00001000   00000000    rw- .stack
  200079e8    200079e8    0000029c   00000000    rw- .data