Troubleshooting TI C2000 GFM inverter simulation

Hello,

I am conducting research related to GFM + droop control. The experiment involves PLECS functioning as the TI C2000 controller, which will act as a PWM controller to subsequently control the plant on the inverter within the Typhoon HIL application, as shown in this image:

VI_grid is the PCC, while the current block represents the inverter output current. They have been offset and scaled to become data processed by the microcontroller and entered into PLECS as input data for control. However, after several attempts, the experiments always failed, and the results did not match the reference. Here are the results:

I set the P and Q references in PLECS to 0, but it seems the PLECS controller failed to regulate the inverter to produce results matching the reference. My question is: is there an additional controller or an error in my PLECS blocks causing this failure, even though I have successfully tested GFM and GFL? I have also tried to find a solution but am now stuck. I have a hypothesis that the initial condition must be set on integrator block 1 to achieve synchronization, but this is still speculative. Do you have any suggestions or other PLECS blocks to make the control work in this TI C2000 microcontroller experiment? I appreciate your advice and help.

Here is the PLECS controller, and I am using the LAUNCHXL-F28069M:

tes open loop - Copy - diskrit (5)_henry.plecs (255.8 KB)