I am using the Piccolo F2806x MCU and I need to allocate memory for a large data buffer. It appears as though memory in LD7 and LD8 are available. How to allocate this memory? I have attempted to use the DATA_SECTION pragma but I get the following warning:
824-D pragma DATA_SECTION can only be applied to a file level symbol definition, not "MCDataBuf" (declared at line 16)
Code as follows:
c header file:
typedef struct MTR_DATA_BUF_s {
#define BUFFER_SIZE 100
Uint32 Buf[BUFFER_SIZE];
} MTR_DATA_BUF_T;
c source file
#ifdef__cplusplus
#pragma
DATA_SECTION("MotorCtrlDataBuf");
#else
#pragma DATA_SECTION(MCDataBuf, "MotorCtrlDataBuf");
#endif
extern volatile MTR_DATA_BUF_T MCDataBuf;
cmd file:
/*** User Defined Sections ***/
Cla1ToCpuMsgRAM : > CLA1_TO_CPU_MSGRAM, PAGE = 1
CpuToCla1MsgRAM : > CPU_TO_CLA1_MSGRAM, PAGE = 1
MotorCtrlDataBuf : > L7DPSARAM, PAGE = 1
It is not clear to me how to set this up to allocate LD7 or 8 as a defined section. Any assistance would be greatly appreciated.
Best regards,
Doug R.