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.
Tool/software: Code Composer Studio
Hello,
I have my own board with a Sitara AM5716 and 1GB external DDR3 RAM. I have CCS v8.3.1. The compiler generate the linker.cmd.
I would like to create the memory mapping for the DSP inside Sitara using RTSC tool but at the end I can't find it. The following are the 3 steps I follow:
1) Definition of name and device
2) Memory mapping
3) I open the project properties and try to set the new Platform but I can't find it, there are only the default platforms:
After these steps I open again the RTSC tool in order to edit myBoard file but I can see only the CPU core=CPU instead of DSP
What am I doing wrong? Is there other way to set the internal memory?
Thank you for your help
Best regards
Francesco
Francesco,
can you post the content of Platform.xdc from the directory 'myBoard'? I think the name 'CPU' is given to a CPU core, so try to select it and check if you can edit your previously created platform.
When you build the platform, have you seen the message that says that your platform was successfully built? You should see a zip file ti_platforms_myBoard.zip in the directory C:/ti/bios_6_52_00_12/packages/ti/platforms/myBoard if everything went well.
Hi Sasha,
this is the content of Platform.xdc:
/*! * File generated by platform wizard. DO NOT MODIFY * */ metaonly module Platform inherits xdc.platform.IPlatform { config ti.platforms.generic.Platform.Instance CPU = ti.platforms.generic.Platform.create("CPU", { clockRate: 700, catalogName: "ti.catalog.c6000", deviceName: "C66", customMemoryMap: [ ["L2SRAM", { name: "L2SRAM", base: 0x00800000, len: 0x00040000, space: "code/data", access: "RWX", } ], ["OCMC_RAM", { name: "OCMC_RAM", base: 0x40300000, len: 0x00080000, space: "code/data", access: "RWX", } ], ["EXT_RAM", { name: "EXT_RAM", base: 0x90000000, len: 0x00100000, space: "code/data", access: "RWX", } ], ], }); instance : override config string codeMemory = "L2SRAM"; override config string dataMemory = "EXT_RAM"; override config string stackMemory = "EXT_RAM"; }
In the directory there is the file "ti_platforms_myBoard.zip" and I can edit with RTSC tool.
But in any case in the CCS General of project properties I can't select myBoard config:
How can I show it?
Francesco
Francesco,
one more thing to check is that the file package.xdc names the platform package correctly. There should be the line
package ti.platforms.myBoard
in that file.
Assuming that's correct, the next thing to try is to create your custom platform in a directory outside of the SYS/BIOS product. The SYS/BIOS product has a special way of selecting platforms for a new project, and it's possible that your platform is being ignored because it's located in the SYS/BIOS repository but it's not one of the platforms originally delivered with SYS/BIOS.
When you create your platform, choose a different directory, for example C:/myRepo. Create your platform there, and then when you get to select the platform for your project, click on Add... button, and choose Select repository from file-system. Find C:/myRepo and add it to the list of Products and Repositories. The search should now look into that repository.
If that fails to bring up your platform, check if there are any errors in the log file that could prevent the complete platform search. To verify that, go to .metadata directory of your workspace and delete the file .log. Then, open your project again and try to use your platform. The file .log should be recreated in the process and if there are any errors, they would be in there. Please post that file here.
Sasha,
package.xdc name is correct. I tried creating it in a local directory and I added it in "Products and Repositories" without any error in the .log file but when I compile I have the following errors:
Building file: "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/mcasp/example/idkAM571x/c66/bios/DeviceLoopback.cfg" Invoking: XDCtools "C:/ti/xdctools_3_50_03_33_core/xs" --xdcpath="C:/ti/pdk_am57xx_1_0_11/packages;C:/ti/edma3_lld_2_12_05_30C/packages;C:/ti/ipc_3_47_02_00/packages;C:/ti/uia_2_21_02_07/packages;C:/ti/bios_6_52_00_12/packages;C:/Users/Francesco/ti/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p myBoard -r debug -c "C:/ti/ccsv8/tools/compiler/ti-cgt-c6000_8.3.5" "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/mcasp/example/idkAM571x/c66/bios/DeviceLoopback.cfg" configuring DeviceLoopback.xe66 from package/cfg/DeviceLoopback_pe66.cfg ... The C66 device is not currently supported. The following devices are supported for the C66 target: TMS320C6670 [...] Vayu TDA3XX IWR16XX subdir_rules.mk:12: recipe for target 'build-988493487-inproc' failed js: "C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Settings.xs", line 194: Error: Unsupported device! "C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Settings.xs", line 220 "C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/Settings.xs", line 170 "C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/Settings.xs", line 123 "C:/ti/pdk_am57xx_1_0_11/packages/ti/drv/mcasp/example/idkAM571x/c66/bios/DeviceLoopback.cfg", line 6 "./package/cfg/DeviceLoopback_pe66.cfg", line 188 xdctools_3_50_03_33_core\gmake.exe: *** [package/cfg/DeviceLoopback_pe66.xdl] Error 1 js: "C:/ti/xdctools_3_50_03_33_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted. gmake[1]: *** [build-988493487-inproc] Error 1 gmake: *** [build-988493487] Error 2 subdir_rules.mk:9: recipe for target 'build-988493487' failed gmake: Target 'all' not remade because of errors. **** Build Finished ****
Do I have to upgrade the Code Composer Studio to a newer version?
So, your platform is being used. That's good. You only need to change the device you are using in your platform. Delete your current platform and in its place create another one, but in the first step don't choose C66. Scroll down more, and find TMS320C6670. Then, you can customize your platform in the next step to fit what you actually have on AM5716. The choice of the device matters for cache settings and interrupts, and as far as I can tell, for these purposes SYS/BIOS treats all 66 devices as if they are TMS320C6670.
Sasha,
I created a new project with sysbios and a new platform using TMS320C6670 as you suggested: CCS compiled the project.
For the project MCASP_DeviceLoopback_idkAM571x_c66ExampleProject (TI example) I had to create a platform with DRA7XX,, then it compiled the project.
Thanks for your precious help!
Best regards
Francesco