<?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>LPC MicrocontrollersのトピックRe: CAN error flags usage</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-error-flags-usage/m-p/845600#M33656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil Onur Canbaz,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can remove your another CAN node, then debug your LPC54618 CAN code, and check the PSR register directly, check whether the LEC have the error code, it should have the error code, please test it again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Any updated information, please kindly let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2018 02:40:43 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2018-11-21T02:40:43Z</dc:date>
    <item>
      <title>CAN error flags usage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-error-flags-usage/m-p/845597#M33653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking into can.h file that is in can_fd.loopback example. _can_flags status can be seen by calling&amp;nbsp;CAN_GetStatusFlags(CAN_Type *base) function but there is no info how to reach _can_error_flags registers. How can I do it ? Which function should be used ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75838iFC98941B676FD76C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anıl Onur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2018 09:47:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-error-flags-usage/m-p/845597#M33653</guid>
      <dc:creator>canbazonur</dc:creator>
      <dc:date>2018-11-16T09:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: CAN error flags usage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-error-flags-usage/m-p/845598#M33654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil Onur Canbaz,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please check the user manual protocol status register:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76767i838408AEE26469D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can find bit2:0 is just your _can_error_flags, so when you use the CAN_GetStatusFlags&lt;/P&gt;&lt;P&gt;__STATIC_INLINE uint32_t CAN_GetStatusFlags(CAN_Type *base)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return base-&amp;gt;PSR;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;get the PSR register, you can check bit2:0 is which one, then you can know which error happens.&lt;/P&gt;&lt;P&gt;There no API about it, because it is very simple, you can write the code by yourself to check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 09:54:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-error-flags-usage/m-p/845598#M33654</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-11-19T09:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: CAN error flags usage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-error-flags-usage/m-p/845599#M33655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not reach the correct value of controller directly from these registers. As you can see from the log file, CAN-FD frame has been transmitting from the card but can_status_act shows that the node is 'idle' status. Apart from this, I noticed err_can_error_flag (LEC) does not show 'Ack Error'&amp;nbsp;state for other use-case.&amp;nbsp;I am happy to hear some comments about this behavior. You can see how I configured the mask configuration in below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77663i887335475ACA778A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77615i7B97AC23F8342D27/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 11:46:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-error-flags-usage/m-p/845599#M33655</guid>
      <dc:creator>canbazonur</dc:creator>
      <dc:date>2018-11-20T11:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: CAN error flags usage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-error-flags-usage/m-p/845600#M33656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil Onur Canbaz,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can remove your another CAN node, then debug your LPC54618 CAN code, and check the PSR register directly, check whether the LEC have the error code, it should have the error code, please test it again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Any updated information, please kindly let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 02:40:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-error-flags-usage/m-p/845600#M33656</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-11-21T02:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: CAN error flags usage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-error-flags-usage/m-p/845601#M33657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a chance to test CAN-FD node in alone condition. I noticed that when you test the CAN-FD node in alone, 'can_status_act' counter works. LEC register&amp;nbsp;always shows 0x07 value, however I am waiting 'ACK' error since transmitting node is alone ECU in line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question why '&lt;SPAN&gt;can_status_act'&amp;nbsp;register&amp;nbsp;does not work in full communication with other CAN-FD nodes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am avaliable for further analyze proposal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Onur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2018 09:52:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-error-flags-usage/m-p/845601#M33657</guid>
      <dc:creator>canbazonur</dc:creator>
      <dc:date>2018-11-22T09:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: CAN error flags usage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-error-flags-usage/m-p/845602#M33658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i have try the CAN-FD demo, but error frames occured; Can you send your demo to me for test? I see your data log is correctly, Thanks!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My Email: &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:08-meng@163.com"&gt;08-meng@163.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2018 14:36:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-error-flags-usage/m-p/845602#M33658</guid>
      <dc:creator>黎明孟</dc:creator>
      <dc:date>2018-12-27T14:36:06Z</dc:date>
    </item>
  </channel>
</rss>

