How does MCAT data get into the project?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How does MCAT data get into the project?

跳至解决方案
2,434 次查看
GaryOlmstead
Senior Contributor I

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?

0 项奖励
1 解答
2,331 次查看
GaryOlmstead
Senior Contributor I

Success!!  The output file is generated in the SDK folder, not the project folder. 

The Output File tab clearly says it is in the project path.  It is not.  Or, at least, it isn't in SDK 2.7 for TWR-KV31F120M.

在原帖中查看解决方案

0 项奖励
5 回复数
2,332 次查看
GaryOlmstead
Senior Contributor I

Success!!  The output file is generated in the SDK folder, not the project folder. 

The Output File tab clearly says it is in the project path.  It is not.  Or, at least, it isn't in SDK 2.7 for TWR-KV31F120M.

0 项奖励
2,353 次查看
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello

The Generate Configuration file button is located at the Output file tab.
I suggest you to refer to chapter 4 of this application note https://www.nxp.com/docs/en/application-note/AN4912.pdf

If you have more questions do not hesitate to ask me.
Best regards,
Omar

0 项奖励
2,411 次查看
GaryOlmstead
Senior Contributor I

Progress!!  MCAT's Output File tab has a button called Generate Configuration File.  It says it generates a file called m1_pmsm_appconfig.h.  Clicking it generates a ...  well... a file-like thing that has all the data you need, but it does not store the data anyplace.  I searched for m1_pmsm_appconfig.h, and loaded the data in manually, but it's time consuming and subject to all the usual errors.

with the new data, the motor starts, takes two steps forward, one backward, and stops.

0 项奖励
2,411 次查看
GaryOlmstead
Senior Contributor I

Forgot to ask the question:  How do I get the Generate Configuration File button to save the data that it creates?

0 项奖励
2,423 次查看
MichalH
NXP Apps Support
NXP Apps Support

Moving this topic from FreeMASTER to Motor Control and Smart Energy forum.

 

0 项奖励