使用的CCS版本Code Composer Studio 6.0.1; 使用的芯片F28M36
使用tirtos_c2000_2_00_01_23,xdctools_3_30_03_47_core
以下为cmd文件,我新建了一个空的c2000的RTOS工程,在默认cmd文件最后一行增加了MYSEC,在main文件我定义了#pragma DATA_SECTION(DMABuf1,"MYSEC");编译的时候总是报warning #10247-D: creating output section "MYSEC" without a SECTIONS specification
在m3核,我也建了同样的工程,也在cmd和main文件做了同样的操作,编译没有warning,在线求解,谢谢
* ======== F28M36P63C2.cmd ========
* Define the memory block start/length for the F28M36P63C2 C28
*/
MEMORY
{
PAGE 0: /* Program Memory */
FLASH : origin = 0x100000, length = 0x3FF80
BEGIN : origin = 0x13FFF0, length = 0x2
PAGE 1 : /* Data Memory */
M01SARAM : origin = 0x0, length = 0x800 /* on-chip RAM block M0, M1 */
PIEVECT : origin = 0xD00, length = 0x100
L03SARAM : origin = 0x8000, length = 0x4000 /* on-chip RAM block L0-L3 */
S07SHRAM : origin = 0xC000, length = 0x8000
CTOMMSGRAM : origin = 0x3F800, length = 0x400
MTOCMSGRAM : origin = 0x3FC00, length = 0x400
}
SECTIONS
{
/* Allocate program areas: */
.text : > FLASH PAGE = 0
.cinit : > FLASH PAGE = 0
.pinit : > FLASH PAGE = 0
.binit : > FLASH PAGE = 0
ramfuncs : LOAD = FLASH PAGE = 0,
RUN = L03SARAM PAGE = 1,
LOAD_START(_RamfuncsLoadStart),
LOAD_SIZE(_RamfuncsLoadSize),
LOAD_END(_RamfuncsLoadEnd),
RUN_START(_RamfuncsRunStart)
/* Initalized sections go in Flash */
.econst : > FLASH PAGE = 0
.switch : > FLASH PAGE = 0
/* Allocate uninitalized data sections: */
.stack : > M01SARAM | L03SARAM PAGE = 1
.ebss : > M01SARAM | L03SARAM PAGE = 1
.esysmem : > L03SARAM | M01SARAM PAGE = 1
.cio : > L03SARAM | M01SARAM PAGE = 1
.args : > L03SARAM | M01SARAM PAGE = 1
.MYSEC :>L03SARAM PAGE = 1
}
以下为main文件开头部分
#include <xdc/std.h>
#include <xdc/runtime/Error.h>
#include <xdc/runtime/System.h>
#include <xdc/cfg/global.h>
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/knl/Task.h>
#include <ti/sysbios/knl/Event.h>
#include <ti/sysbios/knl/Semaphore.h>
#include <ti/sysbios/family/c28/Hwi.h>
#include "F28M36x_Device.h" // F28M36x Headerfile Include File
#include "F28M36x_GlobalPrototypes.h" // Prototypes for global functions
// within the .c files.
#include <string.h>
#pragma DATA_SECTION(DMABuf1,"MYSEC");
。。。。。