I recently purchase HVP-KV46F150M demo kit and also found code for sensorless vector control of PMSM motor. But, it does not have MCAT file associated with it. Means i only can see the freemaster file. Please attach the MCAT tool file for tuning the controller for PMSM motor using field oriented control structure.
Hello,
It got connected by following your instructions. But MCAT tool is showing this error. please reply me soon as I have spent lot of time on this. if I don't get any output from this. I may be lost of all my time which I spent on this development.
Check the following variables in FreeMASTER:
Board ID = hvp-kv46f
Motor Type = pmsm
sAppIdFM.cAppVer = 1.1.1
MCAT recognizes the type of application from these variables. If these variables are incorrect, double check the Symbol file (posted above, 1.6.2016 4:49).
BR,
Josef
Double check build configurations. If you build/download the debug configuration in IAR, you must select the "debug" path for symbol file in FreeMASTER. The same applies for the release configuration:
If I didn't answer your question or it doesn't help, make a screenshot of the error, please.
BR,
Josef
These are some of the errors which I got when I ran the program (pmsm_ref_sol).
Building configuration: pmsm_ref_sol - debug
Updating build tree...
4 file(s) deleted.
Updating build tree...
startup_MKV46F16.s
Error[438]: This instruction is not available in the selected cpu/core C:\Freescale\MCRSP_PMSM_V1.1.1\src\common\sdk\devices\MKV46F16\startup\iar\startup_MKV46F16.s 355
Error[438]: This instruction is not available in the selected cpu/core C:\Freescale\MCRSP_PMSM_V1.1.1\src\common\sdk\devices\MKV46F16\startup\iar\startup_MKV46F16.s 357
Error[438]: This instruction is not available in the selected cpu/core C:\Freescale\MCRSP_PMSM_V1.1.1\src\common\sdk\devices\MKV46F16\startup\iar\startup_MKV46F16.s 359
Error[438]: This instruction is not available in the selected cpu/core C:\Freescale\MCRSP_PMSM_V1.1.1\src\common\sdk\devices\MKV46F16\startup\iar\startup_MKV46F16.s 360
Error while running Assembler
freemaster_appcmd.c
Error[Ta097]: Cannot call intrinsic function "__nounwind __DSB" from Thumb mode in this architecture C:\Freescale\MCRSP_PMSM_V1.1.1\src\common\sdk\cmsis\Include\core_cm4.h 1723
Error[Ta097]: Cannot call intrinsic function "__nounwind __DSB" from Thumb mode in this architecture C:\Freescale\MCRSP_PMSM_V1.1.1\src\common\sdk\cmsis\Include\core_cm4.h 1728
Error while running C/C++ Compiler
app_init.c
Please reply soon.
Check Project -> Options if a correct device is selected (MKV46F256xxx16):
And write me which version of IAR you are using. The IAR Project Options are sometimes confused among different versions.
BR,
Josef
Share some of the errors. You might be using a different IAR version. See release notes.
BR,
Josef
Still the same problem with the symbol file and nonsense variables? There are 2 configurations (Debug = no optimization, Release = optimized for speed). If you compile/download debug configuration, there must be the debug in the symbol file path at FreeMASTER. The same applies for the Release configuration:
Let me know your comments,
Josef
U r absolutely right. Every time I open the MCAT tool, It gives me a pop-up saying that no symbol found. I click on continue to further use of MCAT tool.
I am tuning PMSM motor using HVP-KV46F150M board which has not got the dedicated MCAT file on NXP website. I only can see freemaster file. But I am using MCAT tool file which is given for HVP-KV46F256M. May be this is actually giving me a problem. Please attach the MCAT TOOL file for HVP-KV46F150M board. It would be a great help for me.
Otherwise, tell me where do I get those symbol file ??, Reply soon
Regards,
Sandeep
If you have just started and have not written a lot of your own code to the original application, the best would be to download the newest MCRSP-PMSM (Motor Control Reference Solution Package for PMSM) here:
3-Phase PMSM Motor Control Reference Design|NXP
You can find there the project files, FreeMASTER file and MCAT for all supported platforms (KV46 too). At first try it as it is (just check Release/Debug configurations, see Release notes chapter 8.1).
If you don't want to try the MCRSP-PMSM and keep working with your application you can try to copy the FreeMASTER + MCAT from the package manually, but it won't work correctly because of development.
Where did you get the code you have? Is it the HVP-KV46 Quick Start Package? My advice is to download the MCRSP-PMSM package. The Quick Start Package is not maintained and no bugs are fixed there:
BR,
Josef
Hello,
I am tuning PMSM motor as per application note 4912 for FOC algorithm. To tune the motor, we will start by entering the motor parameters into the MCAT tool. once i generate the appconfig file from it. Application note says choose the V/F control. Every time i pressed the application switch, (scalar control is enabling, but application is not going to RUN state even i click on application switch) It always go to the fault mode while tuning in V/f mode to get the pure sinusoidal currents as motor currents. Please reply as i am half way through this procedure to get exact results.
These are the error i am getting from the MCAT tool. Please give me valuable suggestion to get rid of these errors. For the sake of example, i have attached screenshot while clicking on FOC control structure. Even this error comes with scalar control and other control structure also.
Hi sandeep,
From the screenshots you shared, I can see that FreeMASTER is reading nonsense (see the Variable Watch window, e.g. unknown, ?, etc.). Most probably, the symbol file that your FreeMASTER is using doesn't correspond to code in your target. The symbol file says where the variables are placed in target memory so if it is incorrect or outdated, then FreeMASTER reads/writes wrong addresses. Symbol file selection (for IAR it is *.out):
Also when you rebuild your application, the symbol file is re-generated. FreeMASTER recognizes it and asks if you want to reload it. Always click yes:
If you get "Missing Symbol Definitions" pop-up, it means that the symbol file is missing or the listed variables (that FreeMASTER is trying to read) has no record in the symbol file:
Because MCAT interacts with FreeMASTER watched variables it is crucial to have the above fixed.
BR,
Josef
In its factsheet, it is written that;
Input voltage is 85–240 V AC, with output power of the motor stage up to 1 KW, with the ability to drive a 1.2 Hp motor, and 800 watts when using the PFC stage with the motor stage.
Besides, the freemaster allows the low voltages to create header file.
I could not find any information about min nominal motor voltage for HVP platform. if you have, please send me the link which defines the HVP platform min nominal motor voltage!
We have 24V/500W, 70V/300W, 70V/600W, 120V/800W motors.
Meanwhile I tested the board with 70V/300W motor and getting the same fault in HVP platform.
The TWR platform is a low power platform. It can not drive our motors.
Besides I do not think buying any more nxp products. I have enough trouble with HVP platform!
Hello,
I am working on sensor-less speed control of IPMSM motor using vector control technique. I designed controllers for my motor parameters. But, I understood the code which is supplied by freescale (nxp) for sensor-less control. Now, i want to replace the controller gains present in the code with my designed controller values to control my motor. Please help me in putting those controller gains into the existing code.
Designed controller gains are discretized by taking sampling time for current and speed control according to the theory of cascaded control structure. since electrical time constant is much smaller than the mechanical time constant. so sampling frequency for current control is around 10KHz and 1KHz for speed control. But, only thing i am left now is, i have to enter Kp and Ki values to the code. But they have given something like integer gain shift, proportional gain shift, upper limit, lower limit and all. How do i need to enter my controller gains.
Please help me in this regard as soon as possible.
Hi sandeep,
I stay in touch with Application Team and please refer to their response:
Controllers’ parameters are real numbers e.g. 1.8. We cannot express such a number with just fractional type because fractional range is <-1:1). Therefore, we established shifts to be able to describe such numbers, e.g. 1.2 = 0.6 << 1. In general controller’s parameters consists of FracValue << Shift. For more information have a look in documentation of your version of FSLESL. Anyway, there is a newer version (4.2) of FSLESL here:
http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/kinetis-cortex-m-mcus/v-s...
This version uses accumulator type to represent controllers’ parameter (lower 15bits = decimal part + upper 16bit = integer part + sign). Upper/lower limits are limitations of controllers output (e.g. voltage at current controllers or current at speed controller) scaled in fractional.
Please, download our latest PMSM package here:
http://www.nxp.com/products/software-and-tools/reference-designs-and-development-kits/nxp-designs/3-...
There is a PMSM package with projects for all MCUs/platforms with all MCAT files attached.
I hope this helps.
Best Regards,
Iva
Hi Iva,
You can see the parameters tab screenshot above. What else parameters I can send?
The maxon motor, which I try to drive;
I'm not selecting any parameter form current tab. Each time I pressed, it gives error and calculates again. But I think it can not write/store these values.
Hi ozgun.
If you have 24V BLDC motor, use our LV3PH compatible with TWR system. Please see Low-Voltage, 3-Phase Motor Control Tower System Mod|NXP
The LV3PH is scaled to DCbus voltage 36.3V (phase voltage scale = 21V) by default. Current scale is 8A as at HVP. There arise several problems when you use low voltage motor on HVP:
At first try to use our LV3PH power stage designed for TWR system. You will find related SW in the package you downloaded.
I hope this helps.
In case of any issue, please let me know.
Best Regards,
Iva
Please attach KV46F150M series kinetis controller MCAT file for tuning PMSM motor for sensorless vector control technique. I have searched a lot in the freescale website (nxp). Many MCAT files for different boards like tower and others are present. But I did not find MCAT file for particularly KV46F150M. Please I sincerely request you to attach the MCAT file for KV46F150M high voltage platform board. Waiting for valuable reply.