Part Number: TMS320F280039C
Other Parts Discussed in Thread: SFRA
Hey TI experts,
We've been doing the Dual-Axis Motor Drive Using Fast Current Loop (FCL) and SFRA on a Single MCU Reference Design example. Basically, the example is built on F280049C, since this example has position loop, we wanted to use this to control one BLDC motor.
we've trimmed the example to work only for one motor and with LAUNCH-XL-f280049C, the project is working well. we've ported the same example to LAUNCH-XL-F280039C.
- The Projectspec file is edited to point F28003x device support files and libraries.
- We've edited the linker cmd file to work with FLASH.
- In dual_axis_servo_drive_user.h , The ADC channels, EPWM channels were changed as per pin configuration of F80039C.

After compiling and flashing. whilw debugging, after changing the enableFlag to 1 and flagSyncRun to 0. the motorVars[0].isrTicker increasing continuously. when the motorVars[0].ctrlState is chnaged to CTRL_RUN, the motorVars[0].tripFlagDMC goes to high (0x0001) which is OVERCURRENT_FAULT. When checked, this trip_flag is going high when EPWM_getTripZoneFlagStatus() returns high. But when the EPWM flag register TZOST was checked, the values of (EPWM_getTripZoneFlagStatus(obj->pwmHandle[0]) & EPWM_TZ_FLAG_OST) remains 0. Hence, this function should never execute but the code inside is getting executed and throwing over current error.



Any insights would be helpful.
Regards,
Raghu.




