DearZhong Shen,
MCUXpresso IDE copies all project files to its own workspace with changed file structure. It’s mean that paths in FreeMASTER will be wrong.
Best solution will be use FreeMASTER project file (pmp) directly from zip file downloaded from SDK builder).
- unpack zip (.... SDK_2.7.0_EVKB-IMXRT1050.zip) and run FreeMASTER pmsm_float_enc.pmp file located in c:\...\SDK_2.7.0_EVKB-IMXRT1050\boards\evkbimxrt1050\demo_apps\mc_pmsm\pmsm_enc\pmsm_float_enc.pmp
- txt. file for MCAT is located in C:\...\SDK_2.7.0_EVKB-IMXRT1050\middleware\motor_control\freemaster\pmsm_float_enc\mcat\param_files\M1_params_pmsm_evk-imxrt1050.txt
(needed for proper parameters showing in MCAT) - file with motor and control parameters m1_pmsm_appconfig.h used in code is located in MCUXpresso workspace. (in my case C:\...\Documents\MCUXpressoIDE_11.1.0_3169_prc3\workspace\evkbimxrt1050_mc_pmsm\source\m1_pmsm_appconfig.h)
- The PMSM application uses FreeMASTER TSA feature for adressing variables so there's no need to set path to project out file.
If you generate m1_pmsm_appconfig.h for new parameters of the motor via MCAT, file will be located next to pmsm_float_enc.pmp (C:\...\SDK_2.7.0_EVKB-IMXRT1050\boards\evkbimxrt1050\demo_apps\mc_pmsm\pmsm_enc\ m1_pmsm_appconfig.h).
So for using new generated parameters in code you must replace this file with file used in MCUXpresso workspace…
This workaround is valid only for SDK 2.7.
This issue is fixed in new SDK 2.8 that will be released in two weeks.
Regards,
Pavel