<?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: FreeMaster 3.1.2.4 with S32K3 Controller in FreeMASTER</title>
    <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1354037#M759</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/191027"&gt;@JoDo&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;One more ting you need to consider is the communication mode (it is also defined in freemaster_cfg.h)&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;//! Select interrupt or poll-driven serial communication
#define FMSTR_LONG_INTR         0   // Complete message processing in interrupt
#define FMSTR_SHORT_INTR        0   // Queuing done in interrupt
#define FMSTR_POLL_DRIVEN       1   // No interrupt needed, polling only&lt;/LI-CODE&gt;
&lt;P&gt;I will assume that it is Poll Driven (as in the snippet above) - it is easier to use as it does not require setting up any interrupts. Note: in case of the other two, you would need to install `FMSTR_SerialIsr` as LPUART callback function.&lt;/P&gt;
&lt;P&gt;Note that FMSTR_LPUART_BASE, FMSTR_TRANSPORT, FMSTR_SERIAL_DRV only "inform" FreeMASTER Driver what communication will be used.&amp;nbsp;You still need to configure the uart peripheral (clock, pin muxing) in your code.&lt;/P&gt;
&lt;P&gt;Regarding FMSTR_Init and FMSTR_Poll functions:&lt;BR /&gt;* FMSTR_Init should be called once in your main function after the peripheral configuration&lt;BR /&gt;* FMSTR_Poll should be called periodically (either in a loop or a timed interrupt) depending when you want FreeMASTER driver to process the data it receivers over UART. Here is a simple template of how your main function may look like:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;int main(void) {
  /* Initialize chip clock */
  CLOCK_Init(...);

  /* Enable all on-chip peripherals */
  MCME_PeriphCtrl(...);

  /* Pin muxing */
  SIUL_Init(...); /* LPUART13_RX */
  SIUL_Init(...); /* LPUART13_TX */

  /* LPUART13 Init */
  LPUART_Init(LPUART13, ...);

  /* Initialize FreeMASTER */
  FMSTR_Init();

  for (;;) {
    /* FreeMASTER poll function */
    FMSTR_Poll();
  }
 
  return 0;
}
&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 12 Oct 2021 08:20:43 GMT</pubDate>
    <dc:creator>iulian_stan</dc:creator>
    <dc:date>2021-10-12T08:20:43Z</dc:date>
    <item>
      <title>FreeMaster 3.1.2.4 with S32K3 Controller</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1353978#M758</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to work with the FreeMaster 3.1.2.4 and the S32K344 controller. I have already installed the FreeMaster application and the FreeMaster communication driver 3.0. I also refer to the FMSTRSCIDRVUG.pdf to change the configuration file, but it is not very well described how to use it.&lt;BR /&gt;I know that I need to configure a UART port and add the peripheral address as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoDo_0-1634022102900.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/158853iEB938AB2AB69E719/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoDo_0-1634022102900.png" alt="JoDo_0-1634022102900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and add FMSTR_Init() FMSTR_Poll() to the main file. Is there anything else to do to get started?&lt;BR /&gt;Are there some examples for the S32K3 controller? I have not found any.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JoDo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 07:29:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1353978#M758</guid>
      <dc:creator>JoDo</dc:creator>
      <dc:date>2021-10-12T07:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3.1.2.4 with S32K3 Controller</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1354037#M759</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/191027"&gt;@JoDo&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;One more ting you need to consider is the communication mode (it is also defined in freemaster_cfg.h)&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;//! Select interrupt or poll-driven serial communication
#define FMSTR_LONG_INTR         0   // Complete message processing in interrupt
#define FMSTR_SHORT_INTR        0   // Queuing done in interrupt
#define FMSTR_POLL_DRIVEN       1   // No interrupt needed, polling only&lt;/LI-CODE&gt;
&lt;P&gt;I will assume that it is Poll Driven (as in the snippet above) - it is easier to use as it does not require setting up any interrupts. Note: in case of the other two, you would need to install `FMSTR_SerialIsr` as LPUART callback function.&lt;/P&gt;
&lt;P&gt;Note that FMSTR_LPUART_BASE, FMSTR_TRANSPORT, FMSTR_SERIAL_DRV only "inform" FreeMASTER Driver what communication will be used.&amp;nbsp;You still need to configure the uart peripheral (clock, pin muxing) in your code.&lt;/P&gt;
&lt;P&gt;Regarding FMSTR_Init and FMSTR_Poll functions:&lt;BR /&gt;* FMSTR_Init should be called once in your main function after the peripheral configuration&lt;BR /&gt;* FMSTR_Poll should be called periodically (either in a loop or a timed interrupt) depending when you want FreeMASTER driver to process the data it receivers over UART. Here is a simple template of how your main function may look like:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;int main(void) {
  /* Initialize chip clock */
  CLOCK_Init(...);

  /* Enable all on-chip peripherals */
  MCME_PeriphCtrl(...);

  /* Pin muxing */
  SIUL_Init(...); /* LPUART13_RX */
  SIUL_Init(...); /* LPUART13_TX */

  /* LPUART13 Init */
  LPUART_Init(LPUART13, ...);

  /* Initialize FreeMASTER */
  FMSTR_Init();

  for (;;) {
    /* FreeMASTER poll function */
    FMSTR_Poll();
  }
 
  return 0;
}
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 12 Oct 2021 08:20:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1354037#M759</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2021-10-12T08:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3.1.2.4 with S32K3 Controller</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1354743#M763</link>
      <description>&lt;P&gt;Hello Iulian,&lt;/P&gt;&lt;P&gt;thank you very much for the detailed description. It helped me a lot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried it and it works on the first try.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JoDo&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 07:42:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1354743#M763</guid>
      <dc:creator>JoDo</dc:creator>
      <dc:date>2021-10-13T07:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3.1.2.4 with S32K3 Controller</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1371473#M795</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have installed Freemaster driver and the application. I want to send commands from Freemaster to s32k344 via UART while still having S32 design studio up and running.&lt;/P&gt;&lt;P&gt;May I know what are my next steps?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ch&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 20:04:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1371473#M795</guid>
      <dc:creator>Ch1</dc:creator>
      <dc:date>2021-11-15T20:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3.1.2.4 with S32K3 Controller</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1371845#M796</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/193546"&gt;@Ch1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Are you referring to this&amp;nbsp;&lt;A class="dtmcustomrulelink" href="https://www.nxp.com/design/software/development-software/freemaster-run-time-debugging-tool:FREEMASTER?tab=Design_Tools_Tab" target="_self" data-dtmaction="Software &amp;amp; Tools tab: Download click" data-dtmsubaction="FreeMASTER Communication Driver" data-dtmassettype="Download" data-content-subfinding="Software &amp;amp; Tools tab"&gt;FreeMASTER Communication Driver&lt;/A&gt;&amp;nbsp;from the download page or S32K3 Update site ?&lt;/P&gt;
&lt;P&gt;The first one (picture below) is for older K1 MCU family.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture4.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162246iCEA25869F89B58C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture4.PNG" alt="Capture4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Soon, there will be a separate (K3 specific download link, similar to G2). In the meantime, could you please check if you can find FreeMASTER package for K3 in your product lists.&lt;/P&gt;
&lt;P&gt;You can access it from NXP &lt;A href="https://www.nxp.com/" target="_self"&gt;home page&lt;/A&gt;: &lt;BR /&gt;MY NXP&amp;nbsp;&lt;SPAN&gt;→&amp;nbsp;Software Licensing and Support&amp;nbsp;→ &amp;nbsp;Software accounts&amp;nbsp;→ Search Product (search for "S32K3 FreeMASTER").&lt;/SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162249iBE812586B9288E23/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162247iD74FD00CECEC8766/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162248i4C148A7142CD11CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture3.PNG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162250iBF95953600F89321/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture3.PNG" alt="Capture3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;S32K3 FreeMASTER package includes:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Release Notes&lt;/LI&gt;
&lt;LI&gt;S32 Design Studio update site (contains FreeMASTER SDK/Driver for K3)&lt;/LI&gt;
&lt;LI&gt;User Guide&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Release Notes include Update Site installation steps and the User Guide describes Driver configuration options.&lt;/P&gt;
&lt;P&gt;In case you can not find it, I attached an archive with those files (this a temporary solution and I will post an update in this thread once a download link is available on FreeMASTER home page).&lt;/P&gt;
&lt;P&gt;To answer your question - once you have the update site installed in S32 Design Studio you can create a new project or attach FreeMASTER SDK to your existing project (see Release Notes). From that point can follow the same steps I described in my other reply from the thread.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 09:14:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1371845#M796</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2021-11-16T09:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3.1.2.4 with S32K3 Controller</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1372060#M800</link>
      <description>&lt;P&gt;Thank you, lulian for the explanation. I have already installed the package and it's already present in my S32 Design studio.&lt;/P&gt;&lt;P&gt;My question is how can I include this SDK package in my project? Also, I see in the previous thread that JoDo has some config (header) files included in the project. Where do I find them and how do I include them in my project?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are they related to UART comm?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ch1&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 14:11:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1372060#M800</guid>
      <dc:creator>Ch1</dc:creator>
      <dc:date>2021-11-16T14:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3.1.2.4 with S32K3 Controller</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1372072#M801</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;you can do this when you create a new project by selecting the FreeMaster SDK additionally (see picture).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoDo_0-1637072798924.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162296i763DD6A4276631C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoDo_0-1637072798924.png" alt="JoDo_0-1637072798924.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here is a better guide:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/How-to-use-FreeMaster-SDKs-in-S32K3-RTD-0-9-0/ta-p/1361202" target="_blank"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/How-to-use-FreeMaster-SDKs-in-S32K3-RTD-0-9-0/ta-p/1361202&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;JoDo&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 14:30:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1372072#M801</guid>
      <dc:creator>JoDo</dc:creator>
      <dc:date>2021-11-16T14:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3.1.2.4 with S32K3 Controller</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1372083#M802</link>
      <description>&lt;P&gt;When you attach the SDK, S32DS will automatically include all FreeMASTER source files (this one shows G2 but should work the same way for K3):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162297iCCF01DABA31F41D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After the SDK is attached it should automatically open "freemaster_cfg.h" (FreeMASTER configuration header file), in case it does not open - you can find it in &lt;EM&gt;&lt;STRONG&gt;freemaster_include&lt;/STRONG&gt;&lt;/EM&gt; folder in your project tree.&lt;BR /&gt;By default, it is configured to work in UART mode:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;//! Select communication interface (currently only serial is supported)
#define FMSTR_TRANSPORT         FMSTR_SERIAL                    // Use serial transport layer
#define FMSTR_SERIAL_DRV        FMSTR_SERIAL_S32K344_LPUART     // Use serial driver for UART&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add this files manually as well - all source files can be found in &lt;EM&gt;&lt;STRONG&gt;C:\NXP\S32DS.3.4\S32DS\software\FreeMASTER_S32K3_v3\src&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 14:49:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1372083#M802</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2021-11-16T14:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3.1.2.4 with S32K3 Controller</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1372862#M805</link>
      <description>&lt;P&gt;Thank you lulian!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandana M&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 15:57:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1372862#M805</guid>
      <dc:creator>Ch1</dc:creator>
      <dc:date>2021-11-17T15:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3.1.2.4 with S32K3 Controller</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1372863#M806</link>
      <description>&lt;P&gt;Thank you JoDo!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandana M&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 15:58:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-1-2-4-with-S32K3-Controller/m-p/1372863#M806</guid>
      <dc:creator>Ch1</dc:creator>
      <dc:date>2021-11-17T15:58:02Z</dc:date>
    </item>
  </channel>
</rss>

