Hi Mohsen,
I understand that you are facing issues with converting the same model to another model C2000 TMS320F238335.
For a TMS320F283xx processor with a C2000 add on, the workflow requires to control the ePWM module in Simulink for a BLDC motor application. The issue is that Channel B is being observed as an inverted version of channel A, i.e. when EPWMxA is low, EPWMxB is high. This is not desirable in BLDC drive where, during commutation sequence, only two pairs have mosfets switched on and one pair is totally switched off. On trying software control, it gives the same results - it stops the PWMs but makes channel B continuously high.
A delay can be observed in TMS320F238335 which may correspond to the lack of synchronization of three PWM modules.
Additionally, the original model is doing inverted PWM generation, where 25% duty cycle input to ePWM block results in 75% duty cycle on the target's output. For more detailed information, please refer to the following nk: https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/880817
You can refer to the below documentation for more infomation on supported hardware:
There are many possible reasons why your motor might not be running, so you should run the following example to help narrow down the issue:
openExample('c2b/SensorlessfocUsingC2000ProcessorsExample','supportingFile','mcb_pmsm_foc_sensorless_f28335')
If you are unable to get the above example to work properly (i.e. get your motor to run), then you should go through the troubleshooting steps listed in the following documentation link: