<?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のトピックLPCOpen function Chip_CCAN_Send() - blocking</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-function-Chip-CCAN-Send-blocking/m-p/727744#M29432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the LPCOpen function &lt;STRONG&gt;Chip_CCAN_Send()&lt;/STRONG&gt; on LPC4357. The function writes the data to a message object using the selected interface and then keeps checking if the data was sent. This checking is a blocking call. If the message does not get sent (and acknowledged), the function never returns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the function so that it also checks the CAN status register and returns if the last error&amp;nbsp;"LEC" part of the CAN STATUS register is not zero. This way at least my program continues running if there is a bus problem. The function should return the status as well. So far it does not and all the data supposed to be sent in this situation is lost. (not a big deal in my case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this implementation make sense or am I missing something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Dec 2017 22:56:10 GMT</pubDate>
    <dc:creator>quex</dc:creator>
    <dc:date>2017-12-16T22:56:10Z</dc:date>
    <item>
      <title>LPCOpen function Chip_CCAN_Send() - blocking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-function-Chip-CCAN-Send-blocking/m-p/727744#M29432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the LPCOpen function &lt;STRONG&gt;Chip_CCAN_Send()&lt;/STRONG&gt; on LPC4357. The function writes the data to a message object using the selected interface and then keeps checking if the data was sent. This checking is a blocking call. If the message does not get sent (and acknowledged), the function never returns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the function so that it also checks the CAN status register and returns if the last error&amp;nbsp;"LEC" part of the CAN STATUS register is not zero. This way at least my program continues running if there is a bus problem. The function should return the status as well. So far it does not and all the data supposed to be sent in this situation is lost. (not a big deal in my case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this implementation make sense or am I missing something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Dec 2017 22:56:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-function-Chip-CCAN-Send-blocking/m-p/727744#M29432</guid>
      <dc:creator>quex</dc:creator>
      <dc:date>2017-12-16T22:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: LPCOpen function Chip_CCAN_Send() - blocking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-function-Chip-CCAN-Send-blocking/m-p/727745#M29433</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;Please try using the example code used in the below thread.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/441359"&gt;EVB-4357: project periph_ccan&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&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, 18 Dec 2017 17:58:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-function-Chip-CCAN-Send-blocking/m-p/727745#M29433</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2017-12-18T17:58:17Z</dc:date>
    </item>
  </channel>
</rss>

