where is the MCAT for MC9S12ZVM

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

where is the MCAT for MC9S12ZVM

跳至解决方案
2,837 次查看
fanlikang
Contributor II

Hi everyone,

      The board I am using is MC9S12ZVM, but the MCAT tool has not been found. Where can I find it.

                                                                                                        Thanks

0 项奖励
回复
1 解答
2,811 次查看
tomasfedor
NXP Employee
NXP Employee

Hi Fanlikang,

I assume you are using MTRCKTSPNZVM128 devkit .

you can download sw examples here : 

https://www.nxp.com/design/development-boards/automotive-motor-control-solutions/magniv-and-s12-solu...

in the software section: "MTRCKTSPNZVM128 Software"

Software package contains two examples (FOC based on dualshunt current measurement  and FOC based on singleshunt current measurement)

detailed documentation can be found :

C:\NXP\MC_DevKits\MTRCKTSPNZVM128\doc

and examples:

C:\NXP\MC_DevKits\MTRCKTSPNZVM128\sw

in both examples a freeemaster project with MCAT plugin can be found in folder "FreeMASTER_control". 

tomasfedor_0-1669020771585.png

When you open the freemaster (.pmp) project you can start using MCAT. 

tomasfedor_1-1669020838732.png

Best regards, 

Tomas Fedor.

在原帖中查看解决方案

0 项奖励
回复
8 回复数
2,812 次查看
tomasfedor
NXP Employee
NXP Employee

Hi Fanlikang,

I assume you are using MTRCKTSPNZVM128 devkit .

you can download sw examples here : 

https://www.nxp.com/design/development-boards/automotive-motor-control-solutions/magniv-and-s12-solu...

in the software section: "MTRCKTSPNZVM128 Software"

Software package contains two examples (FOC based on dualshunt current measurement  and FOC based on singleshunt current measurement)

detailed documentation can be found :

C:\NXP\MC_DevKits\MTRCKTSPNZVM128\doc

and examples:

C:\NXP\MC_DevKits\MTRCKTSPNZVM128\sw

in both examples a freeemaster project with MCAT plugin can be found in folder "FreeMASTER_control". 

tomasfedor_0-1669020771585.png

When you open the freemaster (.pmp) project you can start using MCAT. 

tomasfedor_1-1669020838732.png

Best regards, 

Tomas Fedor.

0 项奖励
回复
2,673 次查看
fanlikang
Contributor II

Thank you very much for your suggestions. The problem has been solved, but now there are new problems. Please ask for help.

1. The open MACT interface is shown in the figure

fanlikang_0-1678159936223.png

2.I tried to use USB multilink to establish a connection. Please see if my configuration is correct?

fanlikang_1-1678160102142.png

fanlikang_2-1678160152396.pngfanlikang_3-1678160198876.pngfanlikang_4-1678160224554.png

fanlikang_6-1678160290196.pngfanlikang_7-1678160354608.pngfanlikang_8-1678160375309.png

 

fanlikang_9-1678160413364.pngfanlikang_10-1678160444168.png

3. When we reach the ninth step, everything seems to be finished, but the problem appears. Please see the figure below

fanlikang_11-1678160512934.png

So I want to know what is the reason for this and how to solve it

0 项奖励
回复
2,655 次查看
MichalH
NXP Apps Support
NXP Apps Support

Hello, 

for the BDM/JTAG communication, you need to select a correct processor core. In your case this is HCS12z.

When test connection gives wrong or suspicious values (all zeros or all FFs), there is definitely something wrong with a physical connection or a core selected.

If problems would still occur, please upgrade to the latest FreeMASTER version (www.nxp.com/freemaster). The P&E BDM HCS12Z plug-in dialog will have another checkbox which affects the BDM communication and it may help too.

This is how the new plugin configuration looks like:

MichalH_0-1678174862597.png

Regards,
Michal

0 项奖励
回复
2,639 次查看
fanlikang
Contributor II

Thank you very much for your suggestion. I have reconfigured it according to your suggestions, but there are still some problems. It doesn't seem to be connected. The details are as follows.

1.I observe the value of the variable in the variable window of codewar

fanlikang_0-1678195249246.png

 

2.Although the freemaster displays that the connection has been successful and prompts as shown in the figure, the value in the variable window is not consistent with the value displayed in the codearray.

fanlikang_1-1678195396254.png

fanlikang_2-1678195423966.png

 

I want to continue to seek your help and help me solve this problem with your experience. Thank you very much for your reply.

Best wishes

Fanlikang

0 项奖励
回复
2,635 次查看
MichalH
NXP Apps Support
NXP Apps Support

Hello, 

it is key to press the "Test Connection" button in the plug-in configuration to see if a SP, PC and other register values look "reasonably" (not 0x0000 nor 0xFFFF). With BDM, FreeMASTER may "think" it is connected, but the underlying BDM communication may return everything as 0.

Please close the port in FreeMASTER, go to Project/Options, plug-in Configuration and press the Test Connection again - and send the screenshot here.

I would recommend also to update to FreeMASTER 3.2 to get the latest P&E Multilink support.

Thanks,
Michal

0 项奖励
回复
2,617 次查看
fanlikang
Contributor II

Thank you very much for your suggestion. According to your guidance, I re-linked, but the final result is not very good. As you said, sp=0x00 ix=0x00

fanlikang_0-1678339958416.png

 

0 项奖励
回复
2,609 次查看
MichalH
NXP Apps Support
NXP Apps Support

Hello,

please install FreeMASTER 3.2 and try to reset the BDCSCR.CLKSW bit. 

MichalH_0-1678344738415.png

Regards,
Michal

0 项奖励
回复
2,593 次查看
fanlikang
Contributor II

     Thank you and your colleagues for their warm help. The problem has been solved. If the problem occurs again during the motor rotation, I hope I can continue to get your help.

 Best wishes

fanlikang

0 项奖励
回复