This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DSP 28335用了大容量的数组,还有打印printf 调用了MALLOC,出现错误提示

 #10247-D creating output section ".sysmem" without a SECTIONS specification recoder    C/C++ Problem

DSP数组定义如下

#define  MSG_MAX_SIZE   256

typedef struct MT_MSG1 {   Uint16 buffer[37];   Uint16 Packet_num;   Uint16 Message_len;   Uint16 Year;   Uint16 MonthDay;   Uint32 Time;   Uint16 Counter1;   Uint16 block_status_word;   // The Block Status Word of the Message   Uint16 time_tag;   Uint16 data_poiner;         // The Pointer to the data bulk   Uint16 command_word;        // Command Word

  Uint16 status_word;   Uint16 rec_rt_status_word; // For Rt to RT   Uint16 tran_command_word;  // For RT to RT   Uint16 pdata_bulk[72];        // Data bulk   Uint16  data_size;          // The Size of the data words   Uint16  msg_format;         // The Message F }*BU61580_MT_MSG[MSG_MAX_SIZE];

 

  pBU61580_MT_MSG[CurrentMsgCnt]=(struct MT_MSG1*)malloc(sizeof(struct MT_MSG1));