<?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 How to enable Freemaster CAN connection on MPC5644A? in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/How-to-enable-Freemaster-CAN-connection-on-MPC5644A/m-p/836043#M12279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&amp;nbsp;as the title, can anybody help me on this? A demo project is&amp;nbsp;better to show how to integrate the Freemaster serial communication SW package with a mpc5644A CAN Tx/Rx driver. I found few example codes of mpc56xx on internet. I tried Freemaster CAN connection, but failed. Just calling&amp;nbsp;FMSTR_Init() in the initialization, and it needs not extra 5644A CAN initialization, is that right?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my freemaster cfg in freemaster_cfg.h, use POLL_DRIVEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define FMSTR_LONG_INTR 0 /* complete message processing in interrupt */&lt;BR /&gt;#define FMSTR_SHORT_INTR 0 /* SCI FIFO-queuing done in interrupt */&lt;BR /&gt;#define FMSTR_POLL_DRIVEN 1 /* no interrupt needed, polling only */&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;* Select communication interface (SCI/FlexCAN base address)&lt;BR /&gt;******************************************************************************/&lt;/P&gt;&lt;P&gt;#define FMSTR_SCI_BASE 0xFFE40000UL /* LINFlex0 base on MPC5604B/P */&lt;BR /&gt;//#define FMSTR_CAN_BASE 0xFFFC0000UL /* FlexCAN0 base on MPC5604B/P */&lt;BR /&gt;#define FMSTR_CAN_BASE 0xFFFC4000UL /* FlexCAN_B base on MPC5644A */&lt;/P&gt;&lt;P&gt;#define FMSTR_DISABLE 0 /* To disable all FreeMASTER functionalities */&lt;BR /&gt;#define FMSTR_USE_SCI 0 /* To select SCI communication interface */&lt;BR /&gt;#define FMSTR_USE_FLEXCAN 1 /* To select FlexCAN communication interface */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my main() as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;int main(void)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; volatile int counter = 0;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; FMSTR_Init();&lt;/EM&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;EM&gt; xcptn_xmpl (); /* Configure and Enable Interrupts */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/* Loop forever */&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; for(;;) { &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; counter++;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; TestData1++;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (TestData1 &amp;gt;= 10000)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; TestData1 = 0;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; TestData2++;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FMSTR_Poll();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hdp&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2018 09:36:20 GMT</pubDate>
    <dc:creator>007</dc:creator>
    <dc:date>2018-07-20T09:36:20Z</dc:date>
    <item>
      <title>How to enable Freemaster CAN connection on MPC5644A?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-enable-Freemaster-CAN-connection-on-MPC5644A/m-p/836043#M12279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&amp;nbsp;as the title, can anybody help me on this? A demo project is&amp;nbsp;better to show how to integrate the Freemaster serial communication SW package with a mpc5644A CAN Tx/Rx driver. I found few example codes of mpc56xx on internet. I tried Freemaster CAN connection, but failed. Just calling&amp;nbsp;FMSTR_Init() in the initialization, and it needs not extra 5644A CAN initialization, is that right?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my freemaster cfg in freemaster_cfg.h, use POLL_DRIVEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define FMSTR_LONG_INTR 0 /* complete message processing in interrupt */&lt;BR /&gt;#define FMSTR_SHORT_INTR 0 /* SCI FIFO-queuing done in interrupt */&lt;BR /&gt;#define FMSTR_POLL_DRIVEN 1 /* no interrupt needed, polling only */&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;* Select communication interface (SCI/FlexCAN base address)&lt;BR /&gt;******************************************************************************/&lt;/P&gt;&lt;P&gt;#define FMSTR_SCI_BASE 0xFFE40000UL /* LINFlex0 base on MPC5604B/P */&lt;BR /&gt;//#define FMSTR_CAN_BASE 0xFFFC0000UL /* FlexCAN0 base on MPC5604B/P */&lt;BR /&gt;#define FMSTR_CAN_BASE 0xFFFC4000UL /* FlexCAN_B base on MPC5644A */&lt;/P&gt;&lt;P&gt;#define FMSTR_DISABLE 0 /* To disable all FreeMASTER functionalities */&lt;BR /&gt;#define FMSTR_USE_SCI 0 /* To select SCI communication interface */&lt;BR /&gt;#define FMSTR_USE_FLEXCAN 1 /* To select FlexCAN communication interface */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my main() as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;int main(void)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; volatile int counter = 0;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; FMSTR_Init();&lt;/EM&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;EM&gt; xcptn_xmpl (); /* Configure and Enable Interrupts */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/* Loop forever */&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; for(;;) { &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; counter++;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; TestData1++;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (TestData1 &amp;gt;= 10000)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; TestData1 = 0;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; TestData2++;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FMSTR_Poll();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;hdp&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 09:36:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-enable-Freemaster-CAN-connection-on-MPC5644A/m-p/836043#M12279</guid>
      <dc:creator>007</dc:creator>
      <dc:date>2018-07-20T09:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable Freemaster CAN connection on MPC5644A?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-enable-Freemaster-CAN-connection-on-MPC5644A/m-p/1493817#M21617</link>
      <description>&lt;P&gt;Do you find your answer? I am facing the same question as you had&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 06:52:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-enable-Freemaster-CAN-connection-on-MPC5644A/m-p/1493817#M21617</guid>
      <dc:creator>ChenBowen</dc:creator>
      <dc:date>2022-07-22T06:52:29Z</dc:date>
    </item>
  </channel>
</rss>

