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.

Locating Vars in INFOB



I want to put some serial port settings such as baud rate and RTS/CTS flag in INFOB flash.

 

In the header I have

// These get located to flash memory INFOB block.
extern unsigned char upstreamBaudRate0;
extern unsigned char upstreamBaudRate1;
extern unsigned char upstreamUseRTSCTS;
extern unsigned char drmcBaudRate0;
extern unsigned char drmcBaudRate1;

In the .c file I have...

#pragma DATA_SECTION(upstreamBaudRate0, ".infoB");
unsigned char upstreamBaudRate0 = UPSTREAM_BR0;
#pragma DATA_SECTION(upstreamBaudRate1, ".infoB");
unsigned char upstreamBaudRate1 = UPSTREAM_BR1;
#pragma DATA_SECTION(upstreamUseRTSCTS, ".infoB");
unsigned char upstreamUseRTSCTS = USE_RTS_CTS;

#pragma DATA_SECTION(drmcBaudRate0, ".infoB");
unsigned char drmcBaudRate0 = DRMC_BR0;
#pragma DATA_SECTION(drmcBaudRate1, ".infoB");
unsigned char drmcBaudRate1 = DRMC_BR1;

But nothing gets located to .infoB

I looked in the hex dump file and there are no entries for it, and the compiler does not mention the .infoB section in the TI-TXT format debug statements.

Any ideas?