Part Number:MSP430FR5739
Tool/software: Code Composer Studio
I'm trying to use a function pointer in code composer. Here's the line in question:
void (*PtrInitOutput)(void) = &SpiDriver_Init;
I have this declared outside any functions, near the top of my file. SpiDriver_Init is in a separate file.
Later in the code I have:
void OutControl_Init(void) { /*PtrInitOutput();*/ /*SpiDriver_Init();*/ }
When I use the function pointer I get the following warning:
Description Resource Path Location Type
#10229-D output section ".data" refers to load symbol "SpiDriver_Init" and hence cannot be compressed; compression "rle" is ignored PROJECT_NAME C/C++ Problem
If I remove the function pointer and call the SpiDriver_Init function directly, everything works fine. Thoughts on this? I don't like that warning!