S12ZVML128 programming issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12ZVML128 programming issue

2,287 Views
peter_shi
Contributor II

when add the LIN communication in demo code, elf file could be generated succesfully.  

Codewarrior couldn't download code in MCU. Attached is detail information, Please help to check it. 

0 Kudos
8 Replies

2,190 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello Peter,

Could you, please, share the screenshot of the error window you got and Debug configuration?

Also, could you share your project?

By LIN communication demo code do you mean LIN stack example from this folder path C:\NXP\LIN_stack_S12_4_6_3\Examples\S12Z_examples\Carcassonne_S12ZVM?

AN5122 Using Freescale’s LIN Driver with the MagniV Family can be useful:

https://www.nxp.com/docs/en/application-note/AN5122.pdf 

Thank you.

Best regards,

Diana

0 Kudos

2,191 Views
peter_shi
Contributor II

Diana,

Attached is code. Could you please help to check it?

Thanks

Peter

发件人: dianabatrlova <admin@community.nxp.com>

发送时间: 2020年6月9日 17:29

收件人: 史传军(Peter) <peter.shi@linglongmotors.com>

主题: Re: - Re: S12ZVML128 programming issue

NXP Community <https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

Re: S12ZVML128 programming issue

reply from Diana Batrlova<https://community.nxp.com/people/dianabatrlova?et=watches.email.thread> in S12 / MagniV Microcontrollers - View the full discussion<https://community.nxp.com/message/1323841?commentID=1323841&et=watches.email.thread#comment-1323841>

0 Kudos

2,191 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

Let me apologize for the delay. In your code, you have selected SC0, but the MCU signals used for the LIN should be RXD1/TXD1 according to the user manual.

https://www.nxp.com/webapp/Download?colCode=S12ZVML-MINIBRD_UM 

pastedImage_2.png

Note:  SC1 is already used in the S12ZVMLMINIBRD_PMSM_SW_CW11 example code.

Best regards,

Diana

0 Kudos

2,190 Views
peter_shi
Contributor II

Hello Diana

I checked the LIN demo code as below. Demo code used SCI0 as well. Could you please help to check it? Thanks

It still could work for S12ZVMLMINIBRD.

LIN_stack_S12_4_6_3\Examples\S12Z_examples\Carcassonne_S12ZVM

Regards

Peter

发件人: dianabatrlova <admin@community.nxp.com>

发送时间: 2020年6月15日 16:26

收件人: 史传军(Peter) <peter.shi@linglongmotors.com>

主题: Re: - Re: S12ZVML128 programming issue

NXP Community <https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

Re: S12ZVML128 programming issue

reply from Diana Batrlova<https://community.nxp.com/people/dianabatrlova?et=watches.email.thread> in S12 / MagniV Microcontrollers - View the full discussion<https://community.nxp.com/message/1326391?commentID=1326391&et=watches.email.thread#comment-1326391>

0 Kudos

2,190 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

The demo code from the LIN_stack_S12_4_6_3\Examples\S12Z_examples\Carcassonne_S12ZVM uses SCI0.

But this demo code is not written directly for the S12ZVML-MINIBRD. There are differences between the usage of the signals on other boards with the S12ZVML128 device. That is why you should follow the user manual of the S12ZVML-MINIBRD.

You can also, check the schematics to see which pins are not used on the board:

https://www.nxp.com/webapp/Download?colCode=SCH-28219

Unfortunately, there is no LIN example code directly for the S12ZVML-MINIBRD I recommend creating a new project, the demo code you can use a reference, and follow the user manual and AN5122.

I hope it helps.

Best regards,

Diana

0 Kudos

2,190 Views
peter_shi
Contributor II
0 Kudos

2,190 Views
peter_shi
Contributor II

Hello Diana,

Attached is fault information.

error.PNG

0 Kudos

2,077 Views
ArchieLuo
Contributor III

这是因为电机工程的中断与LIN工程的中断写法不同,导致有冲突。

从.map文件分析,这两个地方是存在冲突的。

image.png

image.png

解决方法:

建议将LIN驱动中的中断改成电机驱动代码中的中断方式。

image.png

image.png

另外,所使用的中断,需要在这个文件中定义一下。

image.png

最后,如有需要帮忙,可以联系我,waitair@qq.com

 

 

0 Kudos