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.
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:
Attached is fault information.
Attached is code. Could you please help to check it?
发件人: dianabatrlova <firstname.lastname@example.org>
发送时间: 2020年6月9日 17:29
收件人: 史传军（Peter） <email@example.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>
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.
Note: SC1 is already used in the S12ZVMLMINIBRD_PMSM_SW_CW11 example code.
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.
发送时间: 2020年6月15日 16:26
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>
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:
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.
Retrieving data ...