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.
I want to have some constants be in the same block as some code that I specifically locate in memory.
I have defined a block called .flasher and have method definitions like...
#pragma CODE_SECTION(writeflash, ".flasher")
void writeflash()
{
...
}
Then I want to do something like...
#pragma DATA_SECTION(flashmodStr2, ".flasher")
char flashmodStr2[] = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
and have flashmodStr2 be located in the same block as the above method.
The method gets located just fine, but not the constants.
I see in the FlashMonitor sample code that the assembly uses liens like
CmdTable: DB "CDEGIU"
How is this done in C code in Code Composer Essentials?
Answered in this thread: http://e2e.ti.com/forums/p/10330/40225.aspx#40225