Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CCS/MSP430FR5739: Function pointer causing warning in CCS

$
0
0

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!


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>