Other Parts Discussed in Thread: TMDSCNCD28388D, C2000WARE
Dear experts,
for my work I am dealing with the porting from TMS320F2807x (Piccolo) to TMS320F28388D. I bought the TMDSCNCD28388D.
Currently I am able to upload the code in flash by means of XDS200v2 on-board USB debugger and execute the code on CPU1.
I want improve the performance of my application by exploiting the potential of the dual core.
Because I am a beginner, I took a cue from the TI examples.
Within the pdk C2000Ware_3_04_00_00 there are several project examples.
I noticed that there are always two files to be compiled, each for a specific core.
Specifically each project contains:
- two C-code files (e.g. dma_ex1_shared_periph_cpu1.c and dma_ex1_shared_periph_cpu2.c);
- two linker files (e.g. 2838x_FLASH_lnk_cpu1.cmd and 2838x_FLASH_lnk_cpu2.cmd);
and so on…
So I imagine that, in order to work with both cores, I should compile the files for CPU1 and upload them in core CPU1; then I should do the same on CPU2.
Is there an example in which there is a unique project for dual core application?
- g. a single C-code file in which I decide where to execute the instructions by means of “ifdef CPU1” and “ifdefCPU2”;
- g. a single linker in which I decide where to store the data by means of “ifdef CPU1” and “ifdefCPU2”.
Waiting for a your feedback.
Best regards.
Mik Brigante Sanseverino