<?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 Re: how to program to let Flexcan can continuous send data on s32ds. in S32K</title>
    <link>https://community.nxp.com/t5/S32K/how-to-program-to-let-Flexcan-can-continuous-send-data-on-s32ds/m-p/706732#M1408</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;If using the same MB for transmissions, then you must be sure the MB is successfully transmitted before you are going to fill it again. So instead of delay you can use driver function&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_GetTransferStatus, for example as&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;/* Wait until the previous FlexCAN transmit is completed */&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;while(FLEXCAN_DRV_GetTransferStatus(INST_CANCOM1, TX_MAILBOX) == STATUS_BUSY);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Oct 2017 07:46:16 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2017-10-18T07:46:16Z</dc:date>
    <item>
      <title>how to program to let Flexcan can continuous send data on s32ds.</title>
      <link>https://community.nxp.com/t5/S32K/how-to-program-to-let-Flexcan-can-continuous-send-data-on-s32ds/m-p/706731#M1407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;l set FLEXCAN baudrate is 250K.then if l send a frame,the needed time is calculate as folow:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1000/(250*1000/8/16)=0.51 millisecond.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Now, l do not want to send data through delay.l want to send data quilkly through read the status of register.such as follow（below code is error）:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;while(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (can0-&amp;gt;milbox10-&amp;gt;status==idle)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SendCANData(TX_MAILBOX, TX_MSG_ID, &amp;amp;ledRequested, 1UL);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;below is the mian file code ,l have upload the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thank you if you can&amp;nbsp;help me.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/&lt;BR /&gt; #ifdef PEX_RTOS_INIT&lt;BR /&gt; PEX_RTOS_INIT(); /* Initialization of the selected RTOS. Macro is defined by the RTOS component. */&lt;BR /&gt; #endif&lt;BR /&gt; /*** End of Processor Expert internal initialization. ***/&lt;/P&gt;&lt;P&gt;/* Do the initializations required for this application */&lt;BR /&gt; BoardInit();&lt;/P&gt;&lt;P&gt;GPIOInit();&lt;BR /&gt; FlexCANInit();&lt;/P&gt;&lt;P&gt;flexcan_data_info_t dataInfo =&lt;BR /&gt; {&lt;BR /&gt; .data_length = 1U,&lt;BR /&gt; .msg_id_type = FLEXCAN_MSG_ID_STD,&lt;BR /&gt; .enable_brs = true,&lt;BR /&gt; .fd_enable = true,&lt;BR /&gt; .fd_padding = 0U&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;/* Configure RX message buffer with index RX_MSG_ID and RX_MAILBOX */&lt;BR /&gt; FLEXCAN_DRV_ConfigRxMb(INST_CANCOM1, RX_MAILBOX, &amp;amp;dataInfo, RX_MSG_ID);&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt; {&lt;BR /&gt; SendCANData(TX_MAILBOX, TX_MSG_ID, &amp;amp;ledRequested, 1UL);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338956"&gt;flexcan_encrypted.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 03:49:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/how-to-program-to-let-Flexcan-can-continuous-send-data-on-s32ds/m-p/706731#M1407</guid>
      <dc:creator>jinshuaixu</dc:creator>
      <dc:date>2017-10-16T03:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to program to let Flexcan can continuous send data on s32ds.</title>
      <link>https://community.nxp.com/t5/S32K/how-to-program-to-let-Flexcan-can-continuous-send-data-on-s32ds/m-p/706732#M1408</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;If using the same MB for transmissions, then you must be sure the MB is successfully transmitted before you are going to fill it again. So instead of delay you can use driver function&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_GetTransferStatus, for example as&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;/* Wait until the previous FlexCAN transmit is completed */&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;while(FLEXCAN_DRV_GetTransferStatus(INST_CANCOM1, TX_MAILBOX) == STATUS_BUSY);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 07:46:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/how-to-program-to-let-Flexcan-can-continuous-send-data-on-s32ds/m-p/706732#M1408</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2017-10-18T07:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to program to let Flexcan can continuous send data on s32ds.</title>
      <link>https://community.nxp.com/t5/S32K/how-to-program-to-let-Flexcan-can-continuous-send-data-on-s32ds/m-p/706733#M1409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for you helping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 09:19:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/how-to-program-to-let-Flexcan-can-continuous-send-data-on-s32ds/m-p/706733#M1409</guid>
      <dc:creator>jinshuaixu</dc:creator>
      <dc:date>2017-10-18T09:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to program to let Flexcan can continuous send data on s32ds.</title>
      <link>https://community.nxp.com/t5/S32K/how-to-program-to-let-Flexcan-can-continuous-send-data-on-s32ds/m-p/1357870#M12494</link>
      <description>&lt;P&gt;Hi PrteS,&lt;/P&gt;&lt;P&gt;If I use the freeRTOS and flexcan to send multi-frames, how can I make sure all the messages can be transmit ted normally? Also use while() statement to get the status?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 11:50:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/how-to-program-to-let-Flexcan-can-continuous-send-data-on-s32ds/m-p/1357870#M12494</guid>
      <dc:creator>HancenChen</dc:creator>
      <dc:date>2021-10-19T11:50:56Z</dc:date>
    </item>
  </channel>
</rss>

