Part Number: TMS320F28379D
Other Parts Discussed in Thread: SFRA, TMDXIDDK379D, C2000WARE
Tool/software: Code Composer Studio
Hello.
I am trying to consolidate SFRA code into IDDK_PM_Servo_F2837x-v2 code. I have modified code and cmd file and the code can be compiled successfully. But there are still two problems.
1. I have set the SCI module as follows, but SFRA gui cannot communicate with the control board.
GPIO_SetupPinMux(28, GPIO_MUX_CPU1, 1);
GPIO_SetupPinOptions(28, GPIO_INPUT, GPIO_PUSHPULL);
GPIO_SetupPinMux(29, GPIO_MUX_CPU1, 1);
GPIO_SetupPinOptions(29, GPIO_OUTPUT, GPIO_ASYNC);
SCIA_Init(50000000, 57600);
2. I tried to use SFRA tool directly and not use SCI module, so I modified code as follows and set SFRA1.start as 1. I found SFRA1.FreqIndex increased and SFRA1.state changed between 2 and 3, but when I checked the pi_iq.Ref with oscilloscope, I found that the waveform of this variable was DC component. Even though I increased the injection amplitude, the waveform didn't change. Meanwhile, the value of pi_iq.Ref didn't change in watch window.
pi_iq.Ref = SFRA_F_INJECT(pid_spd.term.Out);
Could you help me deal with these two issues?
Thanks