Other Parts Discussed in Thread: CONTROLSUITE
Hello
I am trying to build motor drive with TMS320F28377D using dual core features so that inverter switching frequence is as fast as possible.
I made code for motor controller side in cpu1 and for ADC data acquisition side in cpu2. With this, I need to transfer measured data from ADC in cpu02 to cpu01 and commanded data from control algorithm in cpu01 to cpu02. The examples provided in TI's ( C:\ti\controlSUITE\device_support\F2837xD\v210\F2837xD_examples_Dual) is hard for me to understand.
By chance, I found an example for dual core application which works good. When I checked the variables between two cores, address of every variable are same in both cores.
I did the same way. But it did not work and I found addresses of every variables in both cores different. I checked the environments of an example project and mine but found no difference
What am I missing to let two cores to communicate ?
----- CPU 01 side -------------
#pragma DATA_SECTION(CPU1toCPU2_variable, "PUTBUFFER");
#pragma DATA_SECTION(CPU2toCPU1_variable, "GETBUFFER");
float32 CPU1toCPU2_variable[7];
float32 CPU2toCPU1_variable[8];
------ CPU 02 side ------------------
#pragma DATA_SECTION(CPU1toCPU2_variable, "GETBUFFER");
#pragma DATA_SECTION(CPU2toCPU1_variable, "PUTBUFFER");
float32 CPU1toCPU2_variable[7];
float32 CPU2toCPU1_variable[8];
Also, is there any good example for IPC which let me understand much easier?
Thank you
Chunki