S12Z does nor run when powering again

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

S12Z does nor run when powering again

1,323 次查看
hbch
Contributor III

I develop a project based on AN4704SW

The code will work only if the emulator is connected and debuging start again.

When the emulator is moved and power again, the mcu can not work.

The MCU is S912ZVML64F1WSK.

The device file is mc9s12zvml128.h

4 回复数

1,141 次查看
hbch
Contributor III

There is some errors in my .prm file which makes  _startup code not download to mcu.

0 项奖励
回复

1,141 次查看
RadekS
NXP Employee
NXP Employee

Hi Guoqiang,

Thank you for your update and founded root cause.

Ok, I didn’t meet with such issue yet. But I am glad that it works correctly now.

 

About CW)

The second most used IDE for S12Z is probably Cosmic.

http://www.cosmic-software.com/s12z_des.php

I suppose, that there will be also another option, but I don’t have any experience with such tools.

I hope it helps you.

Have a great day,
Radek

1,141 次查看
RadekS
NXP Employee
NXP Employee

Hi Guoqiang,

By AN4704SW you mean MTRCKTSBNZVM128?

http://www.nxp.com/downloads/en/board-support-packages/MTRCKTSBNZVM128_SW.exe

This software works correctly on my side.

 

Please check whether you have correctly configured jumper setting per quick start guide:

http://www.nxp.com/docs/en/user-guide/MTRCKTSBNZVM128QSG.pdf

 

Do you use the default LINIX motor from MTRCKTSBNZVM128 kit?

Did you make any modifications in the code or configuration?

 

When code runs in special mode and not in normal mode, the most typical reason is incorrect writing into registers with write once condition like CPMUCOP or MODRRx registers.

I hope it helps you.

Have a great day,
Radek

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,141 次查看
hbch
Contributor III

Hi Radek Sestak, the code work if the emulator is connected and debuging start again, so the hadrware is good. I do not use MTRCKTSBNZVM128. My circuit is based on MTRCKTSBNZVM128. My platform is CW10.6.4 and Win7 32bit.

I hate codewarrior! It is the most terrible  tool I ever used. There are so many bugs in the codewarrior. And also it becomes more and more unstable and strange behaviors as the version updates. Version 6.3 or 5.2 is better than 10.0 or updated version. Dose anyone give me a suggestion of debug tool to develop S12Z but not codewarrior.

0 项奖励
回复