<?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 FreescaleCAN &amp;quot;CAN_SendFrame()&amp;quot; in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/FreescaleCAN-quot-CAN-SendFrame-quot/m-p/279776#M1928</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´m using the MC56F8367 and the CW for MCU v10.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything is working fine, there are just some problems with sending a message using CAN_SendFrame().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i try to send a frame, the function returns ERR_BUSY and the frame is not transmitted.&lt;/P&gt;&lt;P&gt;I builded a "for{...}" loop arround the send command that cals the function until the CAN-device is not longer busy.&lt;/P&gt;&lt;P&gt;In that way i found out that it needs arrount 10 calls until the device is not busy. After 10 cals the&amp;nbsp; "IDLE" bit is "1" and the transmission works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a important thing i forgot before starting a transmission. When is the "IDLE"-bit set by the Hardware?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any answer!!!:smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;joe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jul 2013 08:33:12 GMT</pubDate>
    <dc:creator>spojoe</dc:creator>
    <dc:date>2013-07-18T08:33:12Z</dc:date>
    <item>
      <title>FreescaleCAN "CAN_SendFrame()"</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FreescaleCAN-quot-CAN-SendFrame-quot/m-p/279776#M1928</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´m using the MC56F8367 and the CW for MCU v10.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything is working fine, there are just some problems with sending a message using CAN_SendFrame().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i try to send a frame, the function returns ERR_BUSY and the frame is not transmitted.&lt;/P&gt;&lt;P&gt;I builded a "for{...}" loop arround the send command that cals the function until the CAN-device is not longer busy.&lt;/P&gt;&lt;P&gt;In that way i found out that it needs arrount 10 calls until the device is not busy. After 10 cals the&amp;nbsp; "IDLE" bit is "1" and the transmission works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a important thing i forgot before starting a transmission. When is the "IDLE"-bit set by the Hardware?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any answer!!!:smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;joe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 08:33:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FreescaleCAN-quot-CAN-SendFrame-quot/m-p/279776#M1928</guid>
      <dc:creator>spojoe</dc:creator>
      <dc:date>2013-07-18T08:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: FreescaleCAN "CAN_SendFrame()"</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FreescaleCAN-quot-CAN-SendFrame-quot/m-p/279777#M1929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The ERR_BUSY is returned until the message is received by the target device. It might be OK that it takes 10 calls...&lt;/P&gt;&lt;P&gt;If you'd like to have information on when the message is successfully sent, you can use the OnFreeTxBuffer event (Events tab in the inspector) that is invoked after some buffer is empty so you don't have to wait till some send ends.&lt;/P&gt;&lt;P&gt;I recommend to enable also the generation of OnError event. This event is invoked in case of errors on the bus and you can use GetError function call inside to get details of the error.&lt;/P&gt;&lt;P&gt;There might be also some conflict or problem on the bus that prevents the message to be sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 14:34:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FreescaleCAN-quot-CAN-SendFrame-quot/m-p/279777#M1929</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2013-08-22T14:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: FreescaleCAN "CAN_SendFrame()"</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FreescaleCAN-quot-CAN-SendFrame-quot/m-p/279778#M1930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Petr Hradsky,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I'm working in a project with CAN, and it's working, but, for some reason, the OnFreeTxBuffer is not invoked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I tryed with auto-init, and with manual initialization, and did not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I'm using KDS 3.0.0, and PE 3.0.1.b150806&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;FRDM-KE06Z&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;CH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 20:53:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FreescaleCAN-quot-CAN-SendFrame-quot/m-p/279778#M1930</guid>
      <dc:creator>carloshass</dc:creator>
      <dc:date>2015-09-11T20:53:46Z</dc:date>
    </item>
  </channel>
</rss>

