<?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>Kinetis MicrocontrollersのトピックRe: Why does FLEXCAN_DRV_GetReceiveStatus() continously give me kStatus_FLEXCAN_RxBusy?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-FLEXCAN-DRV-GetReceiveStatus-continously-give-me/m-p/1181075#M58780</link>
    <description>&lt;P&gt;After upgrading the SDK and IDE, I'm at pretty much the same point right now, please see: &lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-is-status-set-to-kStatus-FLEXCAN-UnHandled-in-callback/td-p/1180312" target="_blank"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-is-status-set-to-kStatus-FLEXCAN-UnHandled-in-callback/td-p/1180312&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2020 00:21:10 GMT</pubDate>
    <dc:creator>stdcerr</dc:creator>
    <dc:date>2020-11-11T00:21:10Z</dc:date>
    <item>
      <title>Why does FLEXCAN_DRV_GetReceiveStatus() continously give me kStatus_FLEXCAN_RxBusy?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-FLEXCAN-DRV-GetReceiveStatus-continously-give-me/m-p/1174762#M58654</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a tilt sensor with a CAN interface. It continously sends out data at 250 kbit/s which I can observe with an analyzer that I have connected to the bus as well. The plan is, the receive the CAN data with my K64. I have followed &lt;A href="https://www.nxp.com/docs/en/application-note/AN1798.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/application-note/AN1798.pdf&lt;/A&gt; as best as I could to calculate the timings:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;CLOCK_SYS_GetFlexcanFreq() tells me that my CAN system clock frequency is 14,400,000 (14.4MHz).&lt;/LI&gt;&lt;LI&gt;The cable length is irrelevant (4m)&lt;/LI&gt;&lt;LI&gt;And there's a 12MHz oscillator on my board&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I've been trying to follow to example at KSDK_1.3.0/examples/twrk64f120m/driver_examples/flexcan/flexcan_network/main.c and with the above information, I came up with the following timing parameters:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;flexcan_time_segment_t bit_rate_table_14_4Mhz[] = {
		{ 1, 7, 3, 1, 1},
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;and I have considerable doubt, that these values are correct. I was unable to find all the information required in the datasheets for my sensor ENG_SS_G-NSDOG2-200_207 Inclinometer A4&lt;/P&gt;&lt;P&gt;I set my config up like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;		flexcan1_data.max_num_mb = 16;
		flexcan1_data.num_id_filters = kFlexCanRxFifoIDFilters_8;
		flexcan1_data.is_rx_fifo_needed = false;
		flexcan1_data.flexcanMode = kFlexCanNormalMode;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and set the global mask to 0x7ff:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;result = FLEXCAN_DRV_SetRxMbGlobalMask(flexcanInstance, kFlexCanMsgIdStd, 0x7ff);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;which I don't think is related as whenever I call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;RxStatus = FLEXCAN_DRV_GetReceiveStatus(flexcanInstance);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;RxStatus is set to 7 (kStatus_FLEXCAN_RxBusy), even when the sensor is not sending anything (is powered off). Can anybody point me in the right direction as to what I might be missing?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 22:57:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-FLEXCAN-DRV-GetReceiveStatus-continously-give-me/m-p/1174762#M58654</guid>
      <dc:creator>stdcerr</dc:creator>
      <dc:date>2020-10-29T22:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why does FLEXCAN_DRV_GetReceiveStatus() continously give me kStatus_FLEXCAN_RxBusy?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-FLEXCAN-DRV-GetReceiveStatus-continously-give-me/m-p/1175539#M58667</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/178492"&gt;@stdcerr&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;First of all, I will suggest changing to the new &lt;A href="https://mcuxpresso.nxp.com/en/builder" target="_self"&gt;SDK&lt;/A&gt; using &lt;A href="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-integrated-development-environment-ide:MCUXpresso-IDE" target="_self"&gt;MCUXPresso&lt;/A&gt;. The KSDK is a little old and is not updated anymore. Also, the example in the SDK configures the baud rate and you don't have to calculate each parameter.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Alexis Andalon&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 00:10:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-FLEXCAN-DRV-GetReceiveStatus-continously-give-me/m-p/1175539#M58667</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-10-30T00:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why does FLEXCAN_DRV_GetReceiveStatus() continously give me kStatus_FLEXCAN_RxBusy?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-FLEXCAN-DRV-GetReceiveStatus-continously-give-me/m-p/1177535#M58717</link>
      <description>&lt;P&gt;old link deleted&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 00:26:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-FLEXCAN-DRV-GetReceiveStatus-continously-give-me/m-p/1177535#M58717</guid>
      <dc:creator>stdcerr</dc:creator>
      <dc:date>2020-11-11T00:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why does FLEXCAN_DRV_GetReceiveStatus() continously give me kStatus_FLEXCAN_RxBusy?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-FLEXCAN-DRV-GetReceiveStatus-continously-give-me/m-p/1181075#M58780</link>
      <description>&lt;P&gt;After upgrading the SDK and IDE, I'm at pretty much the same point right now, please see: &lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-is-status-set-to-kStatus-FLEXCAN-UnHandled-in-callback/td-p/1180312" target="_blank"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-is-status-set-to-kStatus-FLEXCAN-UnHandled-in-callback/td-p/1180312&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 00:21:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-does-FLEXCAN-DRV-GetReceiveStatus-continously-give-me/m-p/1181075#M58780</guid>
      <dc:creator>stdcerr</dc:creator>
      <dc:date>2020-11-11T00:21:10Z</dc:date>
    </item>
  </channel>
</rss>

