Hi Everyone,
I am using TM4C123GH6PM controller. I want to store lookup table in FLASH. For that i have used #pragma DATA_SECTION, but during debugging it is giving me warning as described below and i am unable to call the value which i have stored.
Following Sequence i have followed, please guide me if i have missed something or did anything wrong.
1) In tm4c123gh6pm.cmd file
MEMORY
{
CHANNEL0 : origin = 0x20009000, length = 0x0006000
}
SECTIONS
{
.channel0 : {} > CHANNEL0
}
2) In main.c
#pragma DATA_SECTION (pwmlkp, ".channel0")
const unsigned int pwmlkp[18]={86,93,103,115,125,136,145,159,169,181,192,206,216,226,235,245,256,265};
3) Warning during debug
CORTEX_M4_0: GEL Output:
Memory Map Initialization Complete
CORTEX_M4_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
4) Expression Window
[0] unknown Memory map prevented reading 0x20009000
[1] unknown Memory map prevented reading 0x20009004
.
.
.
[17] unknown Memory map prevented reading 0x20009044