I've already posted a similar post on a different thread in the TI C/C++ Compiler Forum, but I'm having issue in regards to using the calloc function when developing a circular buffer. The code for initializing the circular buffer is shown below, (as well as in the link provided).
/*************CIRCULAR BUFFER*************/ typedef struct { unsigned char value; } ElemType; // Circular buffer object // typedef struct { int size; // maximum number of elements int start; // index of oldest element int end; // index at which to write new element ElemType *elems; // vector of elements } CircularBuffer; CircularBuffer cb; ElemType elem = {0}; int testBufferSize = 0x100; // arbitrary size // void cbInit(CircularBuffer *cb, int size) { cb->size = size + 1; // include empty elem // cb->start = 0; cb->end = 0; cb->elems = (ElemType *)calloc(cb->size, sizeof(ElemType)); }
I've reviewed the linker file and the project properties in CCS version 5.5. I've also increased the heap size to make it larger than the test buffer size I set in my code. However, this has not removed the Warning I am getting:
#10229-D output section ".data" refers to load symbol "_nop" and hence cannot be compressed; compression "rle" is ignored SPI Sniffer FR5739 C/C++ Problem
I'm still combing through the manual and the forums to find a solution, but I would like to get this fixed so that my MSP430 FR5739 will function correctly. Are there any suggestions