<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic 5748G CANFD in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/5748G-CANFD/m-p/729757#M9891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; encounter a problem in debugging CANFD of 5748G.&amp;nbsp;I&amp;nbsp; transmit CANFD message by MCU , receive&amp;nbsp;CAN FD message&amp;nbsp;by&amp;nbsp;&amp;nbsp;Canalyer. The trace window is showed as followes&lt;span class="lia-inline-image-display-wrapper" image-alt="err.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8411i3CF433EAE686F8AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="err.png" alt="err.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The ID and the data is right, why&amp;nbsp;there is a stuff err?&amp;nbsp;&amp;nbsp; please help me, thank you!&lt;/P&gt;&lt;P&gt;My&amp;nbsp;code&amp;nbsp;is&amp;nbsp;as followes:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; &lt;STRONG style="background: silver;"&gt;initCAN_0&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* General &lt;SPAN style="text-decoration: underline;"&gt;init&lt;/SPAN&gt;. No MB IDs &lt;SPAN style="text-decoration: underline;"&gt;iniialized&lt;/SPAN&gt; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; i;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MDIS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Disable module before selecting clock source*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CLKSRC&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;=0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Clock Source = oscillator clock (40 MHz) */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MDIS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Enable module for &lt;SPAN style="text-decoration: underline;"&gt;config&lt;/SPAN&gt;. (Sets FRZ, HALT)*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FRZ&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; =1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;// enable module to enter freezing mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;HALT&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;while&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; (!CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FRZACK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;) {}&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Wait for freeze acknowledge to set */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;while&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; (!CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;NOTRDY&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;) {}&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Wait for freeze acknowledge to set */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RFEN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;WAKMSK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;SOFTRST&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;SUPV&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;SLFWAK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;WRNEN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;WAKSRC&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;SRXDIS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;IRMQ&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;DMA&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PNET_EN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;LPRIOEN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;AEN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDEN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;IDAM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MAXMB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0X3F;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0x04DB0086; &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;BOFFMSK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ERRMSK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;LPB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TWRNMSK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RWRNMSK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;BOFFREC&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TSYN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;LBUF&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;LOM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//canFD&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;格式增加如下配置&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL2&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ISOCANFDEN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; =1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDCTRL&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDRATE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;=0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDCTRL&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TDCEN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;=0;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDCTRL&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TDCOFF&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;=0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDCTRL&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MBDSR0&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDCTRL&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MBDSR1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDCTRL&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MBDSR2&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;for&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; (i=0; i&amp;lt;64; i++) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* MPC574xG has 64 buffers after MPC5748G &lt;SPAN style="text-decoration: underline;"&gt;rev&lt;/SPAN&gt; 0*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[i].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CODE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* &lt;SPAN style="text-decoration: underline;"&gt;Inactivate&lt;/SPAN&gt; all message buffers */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;要使用的发送和接受&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;初始化&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[0].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CODE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = txd_inactive;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Message Buffer 0 set to TX INACTIVE */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[1].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CODE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = txd_inactive;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Message Buffer 1 set to TX INACTIVE , &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;用&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;MB[1]&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;发送报文&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN0_buf_cs_data(8,rxd_empty,0,0,0,0,0,0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN0_buf_cs_data(9,rxd_empty,0,0,0,0,0,0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN0_buf_cs_data(10,rxd_empty,0,0,0,0,0,0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN0_buf_cs_data(11,rxd_empty,0,0,0,0,0,0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN0_buf_cs_data(12,rxd_empty,0,0,0,0,0,0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[8].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID_STD&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0x111;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[9].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID_STD&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0x112;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[10].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID_STD&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0x113;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[11].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID_STD&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0x121;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[12].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID_STD&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0x115;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RXIMR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[8].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0xffffffff;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RXIMR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[9].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0xffffffff;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RXIMR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[10].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0xffffffff;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RXIMR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[11].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0xffffffff;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RXIMR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[12].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0xffffffff;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;IMASK1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0X00001F03;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;// enable interrupt of MB0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; INTC.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PSR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[568].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PRC_SELN0&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//FLEXCAN0_BUF_00_03&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;的&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;ISR&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;由&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;Z4A&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;核响应&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; INTC.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PSR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[570].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PRC_SELN0&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//FLEXCAN0_BUF_08_11&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; INTC.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PSR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[571].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PRC_SELN0&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//FLEXCAN0_BUF_12_15&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; INTC.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PSR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[568].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PRIN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 7;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; INTC.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PSR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[570].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PRIN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 8;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; INTC.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PSR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[571].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PRIN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 8;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; SIUL2.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MSCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[16].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;SSS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Pad PB0: Source signal is CAN0_TX */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; SIUL2.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MSCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[16].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;OBE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Pad PB0: Output Buffer Enable */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; SIUL2.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MSCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[16].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;SRC&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 3;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Pad PB0: Maximum slew rate */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; SIUL2.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MSCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[17].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;IBE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Pad PB1: Enable pad for input - CAN0_RX */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; SIUL2.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;IMCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[188].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;SSS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 2;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* CAN0_RX: connected to pad PB1 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//CAN_0.MCR.R = 0x0000003F;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Negate FlexCAN_0 halt state for 64 MB */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;HALT&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FRZ&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;// disable module to enter freezing mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;while&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; (CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FRZACK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;) {};&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;while&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; (CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;NOTRDY&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;) {}; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Wait to clear */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void CAN0_TransmitMsg(can0_msg_buf* pbuffer,unsigned char index)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; unsigned char&amp;nbsp;i=0,DataByteNum=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CAN_0.MB[index].CS.B.CODE = txd_inactive;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Message Buffer 0 set to TX INACTIVE , 用MB[0]发送报文*/&lt;BR /&gt;&amp;nbsp; CAN_0.MB[index].CS.B.EDL = pbuffer-&amp;gt;EDL ;&lt;BR /&gt;&amp;nbsp; CAN_0.MB[index].CS.B.BRS = pbuffer-&amp;gt;BRS ;&lt;BR /&gt;&amp;nbsp; //CAN_0.MB[index].CS.B.ESI = pbuffer-&amp;gt;ESI;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CAN_0.MB[index].CS.B.IDE = pbuffer-&amp;gt;ide;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Use standard ID length */&lt;BR /&gt;&amp;nbsp; CAN_0.MB[index].ID.B.ID_STD = pbuffer-&amp;gt;std_id;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Transmit ID is 555 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; CAN_0.MB[index].CS.B.RTR = pbuffer-&amp;gt;rtr;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Data frame, not remote Tx request frame */&lt;BR /&gt;&amp;nbsp; if((pbuffer-&amp;gt;length)&amp;lt;=8)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; DataByteNum = pbuffer-&amp;gt;length;&lt;BR /&gt;&amp;nbsp; else if((pbuffer-&amp;gt;length)==9)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; DataByteNum = 12;&lt;BR /&gt;&amp;nbsp; else if((pbuffer-&amp;gt;length)==10)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; DataByteNum = 16;&lt;BR /&gt;&amp;nbsp; else if((pbuffer-&amp;gt;length)==11)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; DataByteNum = 20;&lt;BR /&gt;&amp;nbsp; else if((pbuffer-&amp;gt;length)==12)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; DataByteNum = 24;&lt;BR /&gt;&amp;nbsp; else if((pbuffer-&amp;gt;length)==13)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; DataByteNum = 32;&lt;BR /&gt;&amp;nbsp; else if((pbuffer-&amp;gt;length)==14)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; DataByteNum = 48;&lt;BR /&gt;&amp;nbsp; else if((pbuffer-&amp;gt;length)==15)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; DataByteNum = 64;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for (i=0; i &amp;lt; DataByteNum; i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAN_0.MB[index].DATA.B[i] = pbuffer-&amp;gt;data[i];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Data to be transmitted */&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; CAN_0.MB[index].CS.B.DLC = pbuffer-&amp;gt;length; /* # bytes to transmit w/o null */&lt;BR /&gt;&amp;nbsp; CAN_0.MB[index].CS.B.SRR = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* 发送时，该位为1*/&lt;BR /&gt;&amp;nbsp; CAN_0.MB[index].CS.B.CODE =txd_active;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Activate msg. buf. to transmit data frame */&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2018 08:12:50 GMT</pubDate>
    <dc:creator>ypchang</dc:creator>
    <dc:date>2018-05-29T08:12:50Z</dc:date>
    <item>
      <title>5748G CANFD</title>
      <link>https://community.nxp.com/t5/MPC5xxx/5748G-CANFD/m-p/729757#M9891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; encounter a problem in debugging CANFD of 5748G.&amp;nbsp;I&amp;nbsp; transmit CANFD message by MCU , receive&amp;nbsp;CAN FD message&amp;nbsp;by&amp;nbsp;&amp;nbsp;Canalyer. The trace window is showed as followes&lt;span class="lia-inline-image-display-wrapper" image-alt="err.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8411i3CF433EAE686F8AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="err.png" alt="err.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The ID and the data is right, why&amp;nbsp;there is a stuff err?&amp;nbsp;&amp;nbsp; please help me, thank you!&lt;/P&gt;&lt;P&gt;My&amp;nbsp;code&amp;nbsp;is&amp;nbsp;as followes:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; &lt;STRONG style="background: silver;"&gt;initCAN_0&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* General &lt;SPAN style="text-decoration: underline;"&gt;init&lt;/SPAN&gt;. No MB IDs &lt;SPAN style="text-decoration: underline;"&gt;iniialized&lt;/SPAN&gt; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; i;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MDIS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Disable module before selecting clock source*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CLKSRC&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;=0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Clock Source = oscillator clock (40 MHz) */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MDIS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Enable module for &lt;SPAN style="text-decoration: underline;"&gt;config&lt;/SPAN&gt;. (Sets FRZ, HALT)*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FRZ&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; =1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;// enable module to enter freezing mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;HALT&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;while&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; (!CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FRZACK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;) {}&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Wait for freeze acknowledge to set */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;while&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; (!CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;NOTRDY&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;) {}&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Wait for freeze acknowledge to set */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RFEN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;WAKMSK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;SOFTRST&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;SUPV&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;SLFWAK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;WRNEN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;WAKSRC&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;SRXDIS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;IRMQ&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;DMA&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PNET_EN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;LPRIOEN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;AEN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDEN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;IDAM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MAXMB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0X3F;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0x04DB0086; &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;BOFFMSK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ERRMSK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;LPB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TWRNMSK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RWRNMSK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;BOFFREC&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TSYN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;LBUF&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;LOM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//canFD&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;格式增加如下配置&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CTRL2&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ISOCANFDEN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; =1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDCTRL&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDRATE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;=0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDCTRL&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TDCEN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;=0;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDCTRL&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TDCOFF&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;=0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDCTRL&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MBDSR0&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDCTRL&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MBDSR1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FDCTRL&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MBDSR2&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;for&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; (i=0; i&amp;lt;64; i++) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* MPC574xG has 64 buffers after MPC5748G &lt;SPAN style="text-decoration: underline;"&gt;rev&lt;/SPAN&gt; 0*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[i].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CODE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* &lt;SPAN style="text-decoration: underline;"&gt;Inactivate&lt;/SPAN&gt; all message buffers */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;要使用的发送和接受&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;初始化&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[0].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CODE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = txd_inactive;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Message Buffer 0 set to TX INACTIVE */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[1].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;CODE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = txd_inactive;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Message Buffer 1 set to TX INACTIVE , &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;用&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;MB[1]&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;发送报文&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN0_buf_cs_data(8,rxd_empty,0,0,0,0,0,0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN0_buf_cs_data(9,rxd_empty,0,0,0,0,0,0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN0_buf_cs_data(10,rxd_empty,0,0,0,0,0,0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN0_buf_cs_data(11,rxd_empty,0,0,0,0,0,0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN0_buf_cs_data(12,rxd_empty,0,0,0,0,0,0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[8].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID_STD&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0x111;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[9].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID_STD&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0x112;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[10].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID_STD&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0x113;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[11].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID_STD&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0x121;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[12].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ID_STD&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0x115;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RXIMR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[8].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0xffffffff;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RXIMR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[9].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0xffffffff;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RXIMR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[10].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0xffffffff;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RXIMR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[11].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0xffffffff;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;RXIMR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[12].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0xffffffff;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;IMASK1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0X00001F03;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;// enable interrupt of MB0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; INTC.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PSR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[568].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PRC_SELN0&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//FLEXCAN0_BUF_00_03&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;的&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;ISR&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;由&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;Z4A&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;核响应&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; INTC.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PSR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[570].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PRC_SELN0&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//FLEXCAN0_BUF_08_11&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; INTC.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PSR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[571].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PRC_SELN0&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//FLEXCAN0_BUF_12_15&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; INTC.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PSR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[568].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PRIN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 7;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; INTC.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PSR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[570].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PRIN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 8;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; INTC.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PSR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[571].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;PRIN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 8;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; SIUL2.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MSCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[16].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;SSS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Pad PB0: Source signal is CAN0_TX */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; SIUL2.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MSCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[16].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;OBE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Pad PB0: Output Buffer Enable */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; SIUL2.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MSCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[16].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;SRC&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 3;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Pad PB0: Maximum slew rate */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; SIUL2.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MSCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[17].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;IBE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Pad PB1: Enable pad for input - CAN0_RX */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; SIUL2.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;IMCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;[188].&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;SSS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 2;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* CAN0_RX: connected to pad PB1 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//CAN_0.MCR.R = 0x0000003F;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Negate FlexCAN_0 halt state for 64 MB */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;HALT&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FRZ&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;// disable module to enter freezing mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;while&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; (CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;FRZACK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;) {};&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10pt;"&gt;while&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; (CAN_0.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;NOTRDY&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;) {}; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Wait to clear */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void CAN0_TransmitMsg(can0_msg_buf* pbuffer,unsigned char index)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; unsigned char&amp;nbsp;i=0,DataByteNum=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CAN_0.MB[index].CS.B.CODE = txd_inactive;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Message Buffer 0 set to TX INACTIVE , 用MB[0]发送报文*/&lt;BR /&gt;&amp;nbsp; CAN_0.MB[index].CS.B.EDL = pbuffer-&amp;gt;EDL ;&lt;BR /&gt;&amp;nbsp; CAN_0.MB[index].CS.B.BRS = pbuffer-&amp;gt;BRS ;&lt;BR /&gt;&amp;nbsp; //CAN_0.MB[index].CS.B.ESI = pbuffer-&amp;gt;ESI;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CAN_0.MB[index].CS.B.IDE = pbuffer-&amp;gt;ide;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Use standard ID length */&lt;BR /&gt;&amp;nbsp; CAN_0.MB[index].ID.B.ID_STD = pbuffer-&amp;gt;std_id;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Transmit ID is 555 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; CAN_0.MB[index].CS.B.RTR = pbuffer-&amp;gt;rtr;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Data frame, not remote Tx request frame */&lt;BR /&gt;&amp;nbsp; if((pbuffer-&amp;gt;length)&amp;lt;=8)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; DataByteNum = pbuffer-&amp;gt;length;&lt;BR /&gt;&amp;nbsp; else if((pbuffer-&amp;gt;length)==9)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; DataByteNum = 12;&lt;BR /&gt;&amp;nbsp; else if((pbuffer-&amp;gt;length)==10)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; DataByteNum = 16;&lt;BR /&gt;&amp;nbsp; else if((pbuffer-&amp;gt;length)==11)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; DataByteNum = 20;&lt;BR /&gt;&amp;nbsp; else if((pbuffer-&amp;gt;length)==12)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; DataByteNum = 24;&lt;BR /&gt;&amp;nbsp; else if((pbuffer-&amp;gt;length)==13)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; DataByteNum = 32;&lt;BR /&gt;&amp;nbsp; else if((pbuffer-&amp;gt;length)==14)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; DataByteNum = 48;&lt;BR /&gt;&amp;nbsp; else if((pbuffer-&amp;gt;length)==15)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; DataByteNum = 64;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for (i=0; i &amp;lt; DataByteNum; i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAN_0.MB[index].DATA.B[i] = pbuffer-&amp;gt;data[i];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Data to be transmitted */&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; CAN_0.MB[index].CS.B.DLC = pbuffer-&amp;gt;length; /* # bytes to transmit w/o null */&lt;BR /&gt;&amp;nbsp; CAN_0.MB[index].CS.B.SRR = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* 发送时，该位为1*/&lt;BR /&gt;&amp;nbsp; CAN_0.MB[index].CS.B.CODE =txd_active;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Activate msg. buf. to transmit data frame */&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 08:12:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/5748G-CANFD/m-p/729757#M9891</guid>
      <dc:creator>ypchang</dc:creator>
      <dc:date>2018-05-29T08:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: 5748G CANFD</title>
      <link>https://community.nxp.com/t5/MPC5xxx/5748G-CANFD/m-p/729758#M9892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can recommend to check following:&lt;/P&gt;&lt;P&gt;- have the same bit timing setting on both nodes, same sample point&lt;/P&gt;&lt;P&gt;- if FD is enabled (MCR[FDEN]) you should use CAN_CBT register&lt;/P&gt;&lt;P&gt;- be sure your MCU version is really ISO-FD compliant, mask 0N78S&lt;/P&gt;&lt;P&gt;- have proper CAN bus termination&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 08:31:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/5748G-CANFD/m-p/729758#M9892</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2018-06-07T08:31:53Z</dc:date>
    </item>
  </channel>
</rss>

