Hi Guys,
Based on our platform, I create a new platform package(for example named ABCD) by the means of RTSC tools. The content of ABCD/Platform.xdc is as follows:
metaonly module Platform inherits xdc.platform.IPlatform {
config ti.platforms.generic.Platform.Instance CPU =
ti.platforms.generic.Platform.create("CPU", {
clockRate: 500.0,
catalogName: "ti.catalog.c6000",
deviceName: "TMS320TI814X",
externalMemoryMap:
[
["DSPIPC_MAGIC",
{
name: "DSPIPC_MAGIC",
base: 0x82800000,
len: 0x00001000,
space: "code/data",
access: "RWX",
}
],
["DSPIPC_HEAP",
{
name: "DSPIPC_HEAP",
base: 0x82801000,
len: 0x0007F000,
space: "code/data",
access: "RWX",
}
],
["EMIFB",
{
name: "EMIFB",
base: 0x82900000,
len: 0x00F00000,
space: "code/data",
access: "RWX",
}
],
["SYSLINK_SR0",
{
name: "SYSLINK_SR0",
base: 0x82880000,
len: 0x00080000,
space: "code/data",
access: "RWX",
}
],
["DDR2",
{
name: "DDR2",
base: 0x8B000000,
len: 0x01FFDB00,
space: "code/data",
access: "RWX",
}
],
["SR0",
{
name: "SR0",
base: 0x8E000000,
len: 0x01000000,
space: "code/data",
access: "RWX",
}
],
["SR1",
{
name: "SR1",
base: 0x8D000000,
len: 0x00C00000,
space: "code/data",
access: "RWX",
}
],
["HOST_DSP_NOTIFYMEM",
{
name: "HOST_DSP_NOTIFYMEM",
base: 0x8CFFDB00,
len: 0x00002500,
space: "code/data",
access: "RWX",
}
],
],
l2Mode:"0k",
l1PMode:"32k",
l1DMode:"32k",
});
instance :
override config string codeMemory = "DDR2";
override config string dataMemory = "DDR2";
override config string stackMemory = "DDR2";
}
Then I place the ABCD directory to xdctools/packages\ti\platforms.
Now I establish a new RTSC project, with the project setting" device = Generic C674x Device" and "ELF output format". Then CCS will automatically set the "RTSC Target = ti.targets.elf.C674". But when I need to select the RTSC Platform to ABCD, the XDCtools always find nothing about this new platform. The ABCD platform is composed by a C674x DSP and one ARM, but how do I tell this information to XDC? In other words, when we create new platform, how the RTSC target and RTSC platform setting establish relation with each other?
Allen