Part Number: MSP430FR5994
Other Parts Discussed in Thread: MSP430F149, , MSP-EXP430FR5994
Tool/software: Code Composer Studio
I want to transcript an old MSP430F149 program to the MSP430FR5994. This program uses a command structure to define the different functions.
#define COMMAND(x, flags) void term_##x (const unsigned char* str); \
__attribute__((section(".commands"))) const command_t com_##x = { term_##x, #x, flags }; \
void term_##x (const unsigned char* str)
In the old GCC linker file we have:
MEMORY
{
...
}
SECTIONS
{
...
.text :
{
*(.init)
. = ALIGN(2);
*(.text)
. = ALIGN(2);
*(.text.*)
. = ALIGN(2);
PROVIDE (__term_start = .) ; /* Make start address of .commands available to the program. */
*(.commands) /* Include commands segment. */
PROVIDE (__term_end = .) ; /* Make end address of .commands available to the program. */
. = ALIGN(2);
*(.fini)
_etext = . ;
} > text
...
}
"__term_start" and "__term_end" are memory pointers, that are used to find a specific command within these limits.
Now we tried to transcript the old GCC linker file to the MSP430FR5994 with code composer studio. But we always obtain the message "#10068-D no matching section", and it seams that no memory is allocated to the different commands.
Please could you help us with the transcription of the linker file part for this memory allocation. Thanks.