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.

How do you place a const in a know FLASH location?

I am working with an LM4F using CCS 5.1.

Using the IAR compiler on an AVR, I have used:

#define MONITOR_STATUS_PAGE  0x1FF00
//  Monitor Status Page Contents
// __root is needed here to keep this from being optimized out
#pragma location=MONITOR_STATUS_PAGE
__root __hugeflash const unsigned char monrev[] = "115-1905 Rev B4"; // 20 characters max

So a support tool can the application for the 20 bytes starting at 0x1FF00 and get the part number and revision.

I have also used syntax such as:

const unsigned char monrev[] = "115-1905 Rev B4" @ 0x1FF00;

Can you do something similar with the TI compiler?

I do not see a similar pragma or language construct in the compiler user manual - although it seems possible that a #pragma CODE_SECTION and defining a new section may work.