This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Followed instructions in IDDKv2.2.1_HardwareGuide and IDDKv2.2.1_UserGuide to set up IDDK hardware and load FCL firmware but BUILDLEVEL = FCL_LEVEL1 will not run.
Setting enableFlag = 1 and runMotor = MOTOR_RUN just results in runMotor being reset to MOTOR_STOP.
isrTicker in incrementing. No waveforms on graph displays. No numbers changing in 'expressions' list.
Please help.
Did you click the Refresh button or continuous refresh button in the expressions window?
Ramesh,
Yes. Clicked the graph and expression refresh and continuous refresh.
runMotor still gets reset to MOTOR_STOP and no waveforms or changing data.
The firmware was installed with "C2000Ware_MotorControl_SDK_3_00_01_00"
Firmware is at the path in my install --> "C:\ti\c2000\C2000Ware_MotorControl_SDK_3_00_01_00\solutions\tmdxiddk379d\f2837x"
Check if TripFlagDMC is set. See if setting 'ClearTripFlagDMC=1' helps solve this issue.
Ramesh,
I've already done the ClearTripFlagDMC. This I figured out on my own. Very hard tracing through someone else's code.
Right now the TripFlagDMC is not set. The isrCounter counts. The runMotor keeps getting reset to MOTOR_STOP but it is not set by the code that checks the trip zones. I don't know what piece of code is overwriting runMotor. It seems that it's by an interrupt routine or by watchdog maybe? Digging through the code of a processor I'm not familiar with is very difficult. I would like the kit and example firmware to just be running initially.
Do you have an IDDK that you can try running the firmware on?
-Paul
Paul,
The code is formally verified before release and this complaint has not been received until now. Let me see if I can pull in anyone here that can help.
Just curiosity, can you comment out the if condition for runMotor and see if you get the pulses/ graph,..
Please select the correct position sensor according to your motor in the file of the "fcl_f2837x_tmdxiddk_settings.h". Change the setting as below if you are not using the T-Format encoder.
#define POSITION_ENCODER QEP_POS_ENCODER //T_FORMAT_ENCODER //
The POSITION_ENCODER is already set properly.
I loaded the eval software that is in the Control Suite installation.
This worked perfectly and I was able to finish the complete evaluation using the IDDK board.
The C2000ware has a bug. I leave it to you to find it.
-Paul