<?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>FreeMASTERのトピックRe: FreeMASTER CAN Example S32K144 for S32DS 3.4</title>
    <link>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-CAN-Example-S32K144-for-S32DS-3-4/m-p/1960853#M1877</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225755"&gt;@CY9&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;1. That one is a bug that was fixed in a later version of FreeMASTER Driver. That assignment should be inside the previous {} block:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if (discard &amp;gt; 0U)
{
...
  /* buffer is for sure not full */
  pbuff-&amp;gt;flags.flg.bIsFull = 0;
  pbuff-&amp;gt;nRP               = rp;
}&lt;/LI-CODE&gt;
&lt;P&gt;We do plan to update the library for S32K1 family, but have no ETA at the moment.&lt;/P&gt;
&lt;P&gt;2. First I would clean the project (to be safe I would manually delete the Debug_FLASH folder) and rebuild it. If the issue persists, it means that during the migration to the new DS, you got duplicates for some files. Search for problematic functions (ex:&amp;nbsp;&lt;STRONG&gt;SystemInit&lt;/STRONG&gt;) duplicates definitions in the project files and remove the redundant source path.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 14:21:47 GMT</pubDate>
    <dc:creator>iulian_stan</dc:creator>
    <dc:date>2024-09-24T14:21:47Z</dc:date>
    <item>
      <title>FreeMASTER CAN Example S32K144 for S32DS 3.4</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-CAN-Example-S32K144-for-S32DS-3-4/m-p/1957513#M1860</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't have MCUXpresso , I am using S32DS 3.4. Build 201217(Update3)&lt;/P&gt;&lt;P&gt;I tried to implement FreeMaster using S32DS on S32K144 with CAN.&lt;/P&gt;&lt;P&gt;The example of the SDK is communication with UART.&lt;/P&gt;&lt;P&gt;I saw there are CAN examples on S32K3xx uC and I tried porting to S32K144 but it resulted in too many errors.&lt;/P&gt;&lt;P&gt;There don't seem to be enough examples to explain how to communicate with CAN on the 144.&lt;/P&gt;&lt;P&gt;My product might work from several kilometers away, so cannot use UART communication.&lt;/P&gt;&lt;P&gt;Can you provide some sample code for CAN communication using S32K1xx on S32DS.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 09:10:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-CAN-Example-S32K144-for-S32DS-3-4/m-p/1957513#M1860</guid>
      <dc:creator>CY9</dc:creator>
      <dc:date>2024-09-19T09:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMASTER CAN Example S32K144 for S32DS 3.4</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-CAN-Example-S32K144-for-S32DS-3-4/m-p/1958595#M1866</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225755"&gt;@CY9&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find attached the S32 Design Studio project.&lt;/P&gt;
&lt;P&gt;Note: This project was build with S32DS 3.5 and S32SDK 4.0.1.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 08:44:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-CAN-Example-S32K144-for-S32DS-3-4/m-p/1958595#M1866</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2024-09-20T08:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMASTER CAN Example S32K144 for S32DS 3.4</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-CAN-Example-S32K144-for-S32DS-3-4/m-p/1960213#M1873</link>
      <description>&lt;P&gt;Dear iulian_stan ,&lt;/P&gt;&lt;P&gt;I'd test it by CAN bus , it work !&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There exist 2 question,&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;FMSTR_PipeDiscardBytes() {
    if(discard &amp;gt; 0) {
        rp = ...;
    }
    pbuff-&amp;gt;nRP = rp;
}&lt;/LI-CODE&gt;&lt;P&gt;So, if (discard&amp;lt;=0) , rp = ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had download S32DS 3.5 &amp;amp; update to latest.&lt;/P&gt;&lt;P&gt;After I clean your project, and try to rebuild it , error message :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Building target: fmstr_rtd_fcan_s32k144.elf&lt;BR /&gt;Invoking: Standard S32DS C Linker&lt;BR /&gt;arm-none-eabi-gcc -o "fmstr_rtd_fcan_s32k144.elf" "@fmstr_rtd_fcan_s32k144.args"&lt;BR /&gt;c:/nxp/s32ds.3.5/s32ds/build_tools/gcc_b1620/gcc-6.3-arm32-eabi/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/real-ld.exe: ./SDK/platform/devices/S32K144/startup/system_S32K144.o: in function `&lt;STRONG&gt;SystemInit&lt;/STRONG&gt;':&lt;BR /&gt;D:\Project\TYC\S32DS35\fmstr_rtd_fcan_s32k144\Debug_FLASH/../SDK/platform/devices/S32K144/startup/system_S32K144.c:69: multiple definition of `&lt;U&gt;SystemInit&lt;/U&gt;'; ./SDK/S32K144_SDK_4.0.1/platform/devices/S32K144/startup/system_S32K144.o:D:\Project\TYC\S32DS35\fmstr_rtd_fcan_s32k144\Debug_FLASH/../SDK/S32K144_SDK_4.0.1/platform/devices/S32K144/startup/system_S32K144.c:69: first defined here&lt;BR /&gt;c:/nxp/s32ds.3.5/s32ds/build_tools/gcc_b1620/gcc-6.3-arm32-eabi/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/real-ld.exe: ./SDK/platform/devices/S32K144/startup/system_S32K144.o: in function `&lt;STRONG&gt;SystemCoreClockUpdate&lt;/STRONG&gt;':&lt;BR /&gt;D:\Project\TYC\S32DS35\fmstr_rtd_fcan_s32k144\Debug_FLASH/../SDK/platform/devices/S32K144/startup/system_S32K144.c:128: multiple definition of `&lt;U&gt;SystemCoreClockUpdate&lt;/U&gt;'; ./SDK/S32K144_SDK_4.0.1/platform/devices/S32K144/startup/system_S32K144.o:D:\Project\TYC\S32DS35\fmstr_rtd_fcan_s32k144\Debug_FLASH/../SDK/S32K144_SDK_4.0.1/platform/devices/S32K144/startup/system_S32K144.c:128: first defined here&lt;BR /&gt;c:/nxp/s32ds.3.5/s32ds/build_tools/gcc_b1620/gcc-6.3-arm32-eabi/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/real-ld.exe: ./SDK/platform/devices/S32K144/startup/system_S32K144.o: in function `&lt;STRONG&gt;SystemSoftwareReset&lt;/STRONG&gt;':&lt;BR /&gt;D:\Project\TYC\S32DS35\fmstr_rtd_fcan_s32k144\Debug_FLASH/../SDK/platform/devices/S32K144/startup/system_S32K144.c:179: multiple definition of `&lt;U&gt;SystemSoftwareReset&lt;/U&gt;'; ./SDK/S32K144_SDK_4.0.1/platform/devices/S32K144/startup/system_S32K144.o:D:\Project\TYC\S32DS35\fmstr_rtd_fcan_s32k144\Debug_FLASH/../SDK/S32K144_SDK_4.0.1/platform/devices/S32K144/startup/system_S32K144.c:179: first defined here&lt;/P&gt;&lt;P&gt;......&amp;nbsp;&lt;/P&gt;&lt;P&gt;Build Failed. 57 errors, 5 warnings. (took 6s.272ms)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Have you any suggestion, thanks .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 01:31:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-CAN-Example-S32K144-for-S32DS-3-4/m-p/1960213#M1873</guid>
      <dc:creator>CY9</dc:creator>
      <dc:date>2024-09-24T01:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMASTER CAN Example S32K144 for S32DS 3.4</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-CAN-Example-S32K144-for-S32DS-3-4/m-p/1960853#M1877</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225755"&gt;@CY9&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;1. That one is a bug that was fixed in a later version of FreeMASTER Driver. That assignment should be inside the previous {} block:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if (discard &amp;gt; 0U)
{
...
  /* buffer is for sure not full */
  pbuff-&amp;gt;flags.flg.bIsFull = 0;
  pbuff-&amp;gt;nRP               = rp;
}&lt;/LI-CODE&gt;
&lt;P&gt;We do plan to update the library for S32K1 family, but have no ETA at the moment.&lt;/P&gt;
&lt;P&gt;2. First I would clean the project (to be safe I would manually delete the Debug_FLASH folder) and rebuild it. If the issue persists, it means that during the migration to the new DS, you got duplicates for some files. Search for problematic functions (ex:&amp;nbsp;&lt;STRONG&gt;SystemInit&lt;/STRONG&gt;) duplicates definitions in the project files and remove the redundant source path.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 14:21:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-CAN-Example-S32K144-for-S32DS-3-4/m-p/1960853#M1877</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2024-09-24T14:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMASTER CAN Example S32K144 for S32DS 3.4</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-CAN-Example-S32K144-for-S32DS-3-4/m-p/1966766#M1890</link>
      <description>&lt;P&gt;Dear&amp;nbsp;iulian_stan,&lt;/P&gt;&lt;P&gt;There seems exist too much define in the project, cause sometimes definition mix up?&lt;/P&gt;&lt;P&gt;Ref:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CY9_0-1728024003079.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/302687i501B1F9C859AA3FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CY9_0-1728024003079.png" alt="CY9_0-1728024003079.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I did NOT config and define any USRT in project, but it try to call&amp;nbsp;FMSTR_InitSerial()‵ which is included in definition :&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#if FMSTR_USE_SERIAL
    /* initialize communication and start listening for commands */
    if (!FMSTR_InitSerial())
        return FMSTR_FALSE;
#endif &lt;/LI-CODE&gt;&lt;P&gt;And the `FMSTR_USE_SERIAL` is =0 now.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#define FMSTR_DISABLE          0    /* ... */
#define FMSTR_USE_LPUART       0    /* !!!!! */
#define FMSTR_USE_FLEXCAN      1    
#define FMSTR_USE_PDBDM        0    
//...
#if (FMSTR_USE_SCI) || (FMSTR_USE_ESCI) || (FMSTR_USE_LPUART) || (FMSTR_USE_JTAG) || (FMSTR_USE_USB_CDC) || (FMSTR_USE_MQX_IO) || (FMSTR_USE_MBED)
  #ifndef FMSTR_USE_SERIAL
    #define FMSTR_USE_SERIAL 1
  #else
    #if FMSTR_USE_SERIAL == 0
      #error "FMSTR_USE_SERIAL macro cannot be configured by user, FreeMASTER serial driver functionality is not garanted."
    #endif
    #endif
#else
    #ifndef FMSTR_USE_SERIAL
        #define FMSTR_USE_SERIAL 0
    #endif
#endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 06:55:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-CAN-Example-S32K144-for-S32DS-3-4/m-p/1966766#M1890</guid>
      <dc:creator>CY9</dc:creator>
      <dc:date>2024-10-04T06:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMASTER CAN Example S32K144 for S32DS 3.4</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-CAN-Example-S32K144-for-S32DS-3-4/m-p/1966881#M1891</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225755"&gt;@CY9&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;FreeMASTER Driver has guards against multiple definitions. This includes communication interface definitions (see &lt;EM&gt;&lt;STRONG&gt;freemaster_private.h&lt;/STRONG&gt;&lt;/EM&gt;: 298)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;/* only one communication link may be selected */
#if (!(FMSTR_DISABLE)) &amp;amp;&amp;amp; FMSTR_COUNT_INTERFACES &amp;gt; 1
#error More than one communication interface selected for FreeMASTER driver.
#endif&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The compiler would through an error should there be incompatible definitions.&amp;nbsp;&lt;BR /&gt;Also, there should be no &lt;STRONG&gt;FMSTR_InitSerial&lt;/STRONG&gt; symbol generated in your project if &lt;STRONG&gt;FMSTR_USE_FLEXCAN&lt;/STRONG&gt; is defined.&lt;/P&gt;
&lt;P&gt;You can check this by inspecting the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;.map&lt;/STRONG&gt;&lt;/EM&gt; file content or the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;.elf&lt;/STRONG&gt;&lt;/EM&gt; file symbols.&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;This output is generated in case of CAN:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;C:\NXP\S32DS.3.5\S32DS\build_tools\gcc_v6.3\gcc-6.3-arm32-eabi\arm-none-eabi\bin&amp;gt;readelf.exe C:\fmstr_rtd_fcan_s32k144\Debug_FLASH\fmstr_rtd_fcan_s32k144.elf -s | find "FMSTR_InitCan"
   610: 00000e39    56 FUNC    GLOBAL DEFAULT    3 FMSTR_InitCan

C:\NXP\S32DS.3.5\S32DS\build_tools\gcc_v6.3\gcc-6.3-arm32-eabi\arm-none-eabi\bin&amp;gt;readelf.exe C:\fmstr_rtd_fcan_s32k144\Debug_FLASH\fmstr_rtd_fcan_s32k144.elf -s | find "FMSTR_InitSerial"
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second command returns an empty result.&lt;/P&gt;
&lt;P&gt;I suspect that the clean task may not delete the old elf file or debug configuration does not trigger a full rebuild. This causes the debug session to reuse an older version of the elf file.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 11:08:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMASTER-CAN-Example-S32K144-for-S32DS-3-4/m-p/1966881#M1891</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2024-10-04T11:08:47Z</dc:date>
    </item>
  </channel>
</rss>

