I have a TWR-KV31F120M card in a tower with an MC-LV3PH motor driver, MCUxpresso 11.3.0, FreeMASTER 3.1.1.6 and the SDK 2.7 for the KV31F. When I loaded the default pmsm motor project with the LINIX 45ZWH24-40 motor, everything worked fine. The motor started and ran (both directions) and stopped as instructed.
Now I have a different motor. I plugged its values into MCAT, and generated the new .pmp config file. I can see the file in Windows Explorer. But I don't see how it loads into the program. None of the .C, .H, .MAK or .MEX files that I can find refer to it. It is not specified in any of the Project > Properties settings.
There is also a file called M1_params_pmsm_twr_kv31.txt which has the same information in a different format. It is apparently never referenced, as I can change the filename and recompile without error.
The motor is attempting to run, but only moves a couple of steps, then stops.
So, how do I get the motor configuration data into the program?