<?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 Macros to access filename in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073809#M6447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using S32DS for my device S32K144.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to access the&amp;nbsp;project&amp;nbsp;name from the current code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest if any macros available or pragmas for&amp;nbsp;accessing the filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in adavance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2020 06:25:19 GMT</pubDate>
    <dc:creator>bjrajendra</dc:creator>
    <dc:date>2020-06-22T06:25:19Z</dc:date>
    <item>
      <title>Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073809#M6447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using S32DS for my device S32K144.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to access the&amp;nbsp;project&amp;nbsp;name from the current code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest if any macros available or pragmas for&amp;nbsp;accessing the filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in adavance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 06:25:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073809#M6447</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2020-06-22T06:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073810#M6448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried define macro for project name in Preprocessor macro definitions, but it looks, that macros based on IDE variables can't be expanded by preprocessor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you need project name - you have two options:&amp;nbsp;&lt;/P&gt;&lt;P&gt;manually define it for example in your main.c file like&lt;/P&gt;&lt;P&gt;#define MY_PROJECT_NAME "MyProjectName"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you need it updated automatically (when project name is changed or for different project) - you can use pre-build step and start some .bat script which will generate for example proj_name.h file with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define MY_PROJECT_NAME "MyProjectName"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;line. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"MyProjectName" can be get from filesystem (name of folder where project is) or by parsing .project xml file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/113408i4DAF03D5ED78B5EE/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyway, for what purpose you need Project name in your code?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jiri&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 08:51:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073810#M6448</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2020-06-22T08:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073811#M6449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jiri for your response,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The intension of accessing the filename is to&amp;nbsp;store&amp;nbsp;this software&amp;nbsp;image name&amp;nbsp;within the device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any .bat scripts which serve this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 09:14:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073811#M6449</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2020-06-22T09:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073812#M6450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately don't have such batch file (actually - this is very first time when I met such requirement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But writing such batch script should be easy. Here are some basics:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output to file -&amp;nbsp;&lt;A class="link-titled" href="https://stackoverflow.com/questions/19878136/how-can-i-use-a-batch-file-to-write-to-a-text-file" title="https://stackoverflow.com/questions/19878136/how-can-i-use-a-batch-file-to-write-to-a-text-file"&gt;How can I use a batch file to write to a text file? - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting current directory -&amp;nbsp;&lt;A class="link-titled" href="https://stackoverflow.com/questions/17063947/get-current-batchfile-directory" title="https://stackoverflow.com/questions/17063947/get-current-batchfile-directory"&gt;windows - Get current batchfile directory - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 09:38:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073812#M6450</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2020-06-22T09:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073813#M6451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the batch file with command %~p0, but it gives&amp;nbsp;th complete location of the folder&amp;nbsp;in which the batch file exists, but what exactly I need is the folder alone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any possible help in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 11:01:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073813#M6451</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2020-06-22T11:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073814#M6452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may find helpful this tutorial - string manipulation in batch script:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.dostips.com/DtTipsStringManipulation.php" title="https://www.dostips.com/DtTipsStringManipulation.php"&gt;DOS - String Manipulation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 11:35:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073814#M6452</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2020-06-22T11:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073815#M6453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a very simply (and effective, imho) way: using Eclipse CDT variables which get passed to the compiler/application using -D (defines).&lt;/P&gt;&lt;P&gt;See&amp;nbsp; &lt;A class="link-titled" href="https://mcuoneclipse.com/2020/06/22/how-to-use-eclipse-cdt-environment-variables-in-c-c-code/" title="https://mcuoneclipse.com/2020/06/22/how-to-use-eclipse-cdt-environment-variables-in-c-c-code/"&gt;How to Use Eclipse CDT Environment Variables in C/C++ Code | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That way any CDT or environment variable or information can be passed to the application and used there, including the name of the project or other things like if it is a 'release' or 'build' targer, or informatinon about the host operating system.&lt;/P&gt;&lt;P&gt;It is possible of course to use external script extra make files, but the above approach has worked for me for a very long time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: thanks to @&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="304066" data-username="bjrajendra" href="https://community.nxp.com/people/bjrajendra"&gt;BJ RAJENDRANATH&lt;/A&gt;&amp;nbsp; for that question here which finally triggered me to write about the approach I'm using :-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 18:01:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073815#M6453</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-06-22T18:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073816#M6454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Enrich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I moment I added the line&amp;nbsp;__PROJECTNAME__=\"${ProjName}\" in preprocessor symbols I'm getting the errors as sjown in the below picture. Without that line I dont see any errors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/113597i8E1297D5C9F08CE2/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think, there will be any additional settings to be made along with this. Kindly suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 03:17:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073816#M6454</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2020-06-23T03:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073817#M6455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;I doubt that the error messages are related to the -D addition. You must have changed/broken something else?&lt;/P&gt;&lt;P&gt;Please check (or post) the command line passed to the compiler and linker in the console view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 03:46:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073817#M6455</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-06-23T03:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073818#M6456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Enrich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The moment I erase the line&amp;nbsp;__PROJECTNAME__=\"${ProjName}\" in -D, the build is successfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I created a new project and checked. The result is same. Below shows the addition of CDT variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/113606i8B7317435E7C2A81/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the console view during errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;09:50:02 **** Incremental Build of configuration Debug_FLASH for project hello_world_s32k146 ****&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;make -j8 all &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Building file: ../Generated_Code/Cpu.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Building file: ../Generated_Code/clockMan1.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Building file: ../Generated_Code/pin_mux.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Executing target #1 ../Generated_Code/Cpu.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Executing target #2 ../Generated_Code/clockMan1.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Executing target #3 ../Generated_Code/pin_mux.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Invoking: Standard S32DS C Compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;arm-none-eabi-gcc "@Generated_Code/Cpu.args" -MMD -MP -MF"Generated_Code/Cpu.d" -MT"Generated_Code/Cpu.o" -o "Generated_Code/Cpu.o" "../Generated_Code/Cpu.c"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Invoking: Standard S32DS C Compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Invoking: Standard S32DS C Compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;arm-none-eabi-gcc "@Generated_Code/pin_mux.args" -MMD -MP -MF"Generated_Code/pin_mux.d" -MT"Generated_Code/pin_mux.o" -o "Generated_Code/pin_mux.o" "../Generated_Code/pin_mux.c"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;arm-none-eabi-gcc "@Generated_Code/clockMan1.args" -MMD -MP -MF"Generated_Code/clockMan1.d" -MT"Generated_Code/clockMan1.o" -o "Generated_Code/clockMan1.o" "../Generated_Code/clockMan1.c"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Building file: C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/drivers/src/clock/S32K1xx/clock_S32K1xx.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Building file: C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/devices/S32K146/startup/system_S32K146.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Building file: C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/devices/startup.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Building file: C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/drivers/src/clock/clock_manager.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Building file: C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/drivers/src/interrupt/interrupt_manager.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Executing target #7 C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/drivers/src/clock/S32K1xx/clock_S32K1xx.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Executing target #5 C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/devices/S32K146/startup/system_S32K146.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Executing target #6 C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/devices/startup.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Executing target #8 C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/drivers/src/clock/clock_manager.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Executing target #9 C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/drivers/src/interrupt/interrupt_manager.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Invoking: Standard S32DS C Compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;arm-none-eabi-gcc "@SDK/platform/drivers/src/clock/S32K1xx/clock_S32K1xx.args" -MMD -MP -MF"SDK/platform/drivers/src/clock/S32K1xx/clock_S32K1xx.d" -MT"SDK/platform/drivers/src/clock/S32K1xx/clock_S32K1xx.o" -o "SDK/platform/drivers/src/clock/S32K1xx/clock_S32K1xx.o" "C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/drivers/src/clock/S32K1xx/clock_S32K1xx.c"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Invoking: Standard S32DS C Compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Invoking: Standard S32DS C Compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;arm-none-eabi-gcc "@SDK/platform/devices/startup.args" -MMD -MP -MF"SDK/platform/devices/startup.d" -MT"SDK/platform/devices/startup.o" -o "SDK/platform/devices/startup.o" "C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/devices/startup.c"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Invoking: Standard S32DS C Compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;arm-none-eabi-gcc "@SDK/platform/drivers/src/clock/clock_manager.args" -MMD -MP -MF"SDK/platform/drivers/src/clock/clock_manager.d" -MT"SDK/platform/drivers/src/clock/clock_manager.o" -o "SDK/platform/drivers/src/clock/clock_manager.o" "C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/drivers/src/clock/clock_manager.c"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;arm-none-eabi-gcc "@SDK/platform/devices/S32K146/startup/system_S32K146.args" -MMD -MP -MF"SDK/platform/devices/S32K146/startup/system_S32K146.d" -MT"SDK/platform/devices/S32K146/startup/system_S32K146.o" -o "SDK/platform/devices/S32K146/startup/system_S32K146.o" "C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/devices/S32K146/startup/system_S32K146.c"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Invoking: Standard S32DS C Compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;arm-none-eabi-gcc "@SDK/platform/drivers/src/interrupt/interrupt_manager.args" -MMD -MP -MF"SDK/platform/drivers/src/interrupt/interrupt_manager.d" -MT"SDK/platform/drivers/src/interrupt/interrupt_manager.o" -o "SDK/platform/drivers/src/interrupt/interrupt_manager.o" "C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/drivers/src/interrupt/interrupt_manager.c"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;command-line&amp;gt;:0:17: warning: missing terminating " character&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;In file included from ../Generated_Code/clockMan1.h:57:0,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; from ../Generated_Code/clockMan1.c:39:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;../Generated_Code/Cpu.h:58:30: fatal error: device_registers.h: No such file or directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; #include "device_registers.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; ^&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;compilation terminated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;command-line&amp;gt;:0:17: warning: missing terminating " character&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;In file included from ../Generated_Code/Cpu.c:53:0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;../Generated_Code/Cpu.h:58:30: fatal error: device_registers.h: No such file or directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; #include "device_registers.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; ^&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;compilation terminated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;make: *** [Generated_Code/subdir.mk:57: Generated_Code/clockMan1.o] Error 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;make: *** Waiting for unfinished jobs....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;command-line&amp;gt;:0:17: warning: missing terminating " character&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;../Generated_Code/pin_mux.c:42:30: fatal error: device_registers.h: No such file or directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; #include "device_registers.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; ^&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;compilation terminated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;make: *** [Generated_Code/subdir.mk:49: Generated_Code/Cpu.o] Error 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;make: *** [Generated_Code/subdir.mk:65: Generated_Code/pin_mux.o] Error 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;command-line&amp;gt;:0:17: warning: missing terminating " character&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/drivers/src/clock/S32K1xx/clock_S32K1xx.c:51:30: fatal error: device_registers.h: No such file or directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; #include "device_registers.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; ^&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;compilation terminated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;make: *** [SDK/platform/drivers/src/clock/S32K1xx/subdir.mk:35: SDK/platform/drivers/src/clock/S32K1xx/clock_S32K1xx.o] Error 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;command-line&amp;gt;:0:17: warning: missing terminating " character&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/drivers/src/clock/clock_manager.c:34:30: fatal error: device_registers.h: No such file or directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; #include "device_registers.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; ^&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;compilation terminated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;make: *** [SDK/platform/drivers/src/clock/subdir.mk:35: SDK/platform/drivers/src/clock/clock_manager.o] Error 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;command-line&amp;gt;:0:17: warning: missing terminating " character&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;In file included from C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/devices/startup.c:62:0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/devices/device_registers.h:327:6: error: #error "No valid CPU defined!"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; #error "No valid CPU defined!"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; ^~~~~&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/devices/startup.c:69:38: error: 'NUMBER_OF_CORES' undeclared here (not in a function)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; static volatile uint32_t * s_vectors[NUMBER_OF_CORES] = FEATURE_INTERRUPT_INT_VECTORS;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; ^~~~~~~~~~~~~~~&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/devices/startup.c:69:57: error: 'FEATURE_INTERRUPT_INT_VECTORS' undeclared here (not in a function)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; static volatile uint32_t * s_vectors[NUMBER_OF_CORES] = FEATURE_INTERRUPT_INT_VECTORS;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/devices/startup.c: In function 'init_data_bss':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/devices/startup.c:212:23: warning: implicit declaration of function 'GET_CORE_ID' [-Wimplicit-function-declaration]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; coreId = (uint8_t)GET_CORE_ID();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; ^~~~~~~~~~~&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;make: *** [SDK/platform/devices/subdir.mk:35: SDK/platform/devices/startup.o] Error 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;command-line&amp;gt;:0:17: warning: missing terminating " character&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/devices/S32K146/startup/system_S32K146.c:63:30: fatal error: device_registers.h: No such file or directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; #include "device_registers.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; ^&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;compilation terminated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;make: *** [SDK/platform/devices/S32K146/startup/subdir.mk:35: SDK/platform/devices/S32K146/startup/system_S32K146.o] Error 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;command-line&amp;gt;:0:17: warning: missing terminating " character&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K14x_BETA_1.9.0/platform/drivers/src/interrupt/interrupt_manager.c:58:31: fatal error: interrupt_manager.h: No such file or directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; #include "interrupt_manager.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; ^&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;compilation terminated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;make: *** [SDK/platform/drivers/src/interrupt/subdir.mk:35: SDK/platform/drivers/src/interrupt/interrupt_manager.o] Error 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;09:50:10 Build Finished (took 7s.938ms)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Raju&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 04:22:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073818#M6456</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2020-06-23T04:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073819#M6457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jiri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As suggested I&amp;nbsp;created a batch file &amp;amp; it generates the header file as well if it's manualaly run the batch file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I added in pre-build steps it generates an error during build &amp;amp; doesn't created a header too. A console is as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;10:47:40 **** Incremental Build of configuration Debug_FLASH for project hello_world_s32k146 ****&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;make -j8 pre-build main-build &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;"C:/Users/bj.rajendranath/workspaceS32DS.ARM.2018.R1/hello_world_s32k146/hello_world_s32k146/console.bat"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;C:\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146\Debug_FLASH&amp;gt;echo | set /p= "#define MY_PROJECT_NAME " 1&amp;gt;project_header.h&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;C:\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146\Debug_FLASH&amp;gt;set MYDIR=\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146\&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;C:\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146\Debug_FLASH&amp;gt;set MYDIR1=\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;C:\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146\Debug_FLASH&amp;gt;for %f in (\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146) do set myfolder=%~nxf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;C:\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146\Debug_FLASH&amp;gt;set myfolder=hello_world_s32k146&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;C:\Users\bj.rajendranath\workspaceS32DS.ARM.2018.R1\hello_world_s32k146\hello_world_s32k146\Debug_FLASH&amp;gt;set /p = " "hello_world_s32k146" " 0&amp;lt;nul 1&amp;gt;&amp;gt;project_header.h &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;make: [makefile:85: pre-build] Error 1 (ignored)&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Executing target #14 hello_world_s32k146.siz&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Invoking: Standard S32DS Print Size&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;arm-none-eabi-size --format=berkeley hello_world_s32k146.elf &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt; text data bss dec hex filename&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt; 5928 3408 3144 12480 30c0 hello_world_s32k146.elf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Finished building: hello_world_s32k146.siz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Suggest how to reflect it in the project, as it requires the manual addition of the header file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 05:04:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073819#M6457</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2020-06-23T05:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073820#M6458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's the very same error when I tried use IDE variable in preprocessor macro definition. I spend another time to figure out what's wrong - but no success.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/113610iFD8FFADEB5E135EB/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be Erich will have some comment. Here are expanded build command arguments:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-DPROJECT_NAME=\"S32K144_Project_HelloClocks\" -DCPU_S32K144HFT0VLLT -I"C:\Users\nxf24838\workspaceS32DS.ARM.2.2\S32K144_Project_HelloClocks/include" -I"C:\NXP\S32DS_ARM_v2.2\eclipse\../S32DS/build_tools/gcc_v4.9/arm_ewl2/EWL_C/include" -I"C:\NXP\S32DS_ARM_v2.2\eclipse\../S32DS/build_tools/gcc_v4.9/arm_ewl2/EWL_C/include/arm" -I"C:\NXP\S32DS_ARM_v2.2\eclipse\../S32DS/build_tools/gcc_v4.9/arm_ewl2/EWL_Runtime/include" -I"C:\NXP\S32DS_ARM_v2.2\eclipse\../S32DS/build_tools/gcc_v4.9/arm_ewl2/EWL_Runtime/include/arm" -O0 -g3 -Wall -c -fmessage-length=0 -mno-pic-data-is-text-relative -msingle-pic-base -mpic-register=r9 -v -ffunction-sections -fdata-sections -mcpu=cortex-m4 -mthumb -specs=ewl_c9x_hosted.specs --sysroot="C:\NXP\S32DS_ARM_v2.2\eclipse\../S32DS/build_tools/gcc_v4.9/arm_ewl2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 06:14:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073820#M6458</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2020-06-23T06:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073821#M6459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It the project_header.h file contains line with your project definition - you can just include it in main.c (or in source, where you need it) for example. Also make sure, that Project knows path for this header file (or generate this header in /include folder):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/113609i8A0C7364AFCBD6B1/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 06:20:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073821#M6459</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2020-06-23T06:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073822#M6460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say it is a bug (or glitch, whatever) how the DS32 build system is dealing with macro expansions and the way the build tools are intergrated. The issue is that the DS32 is placing the wrong content into the .args file.&lt;/P&gt;&lt;P&gt;So&lt;/P&gt;&lt;P&gt;PROJECT_NAME=\"${ProjName}\"&lt;/P&gt;&lt;P&gt;gets transformed into&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/113616iD643E3F4ABEE4B26/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(side note: the DS32 does use such args files as interface to the build tools instead passing that on the command line).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution for the DS32 is to use normal double quotes like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/113617iDE8312F45E7E7239/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then it gets correctly placed into the .args file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/113618i8498AD4C77303976/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 06:25:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073822#M6460</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-06-23T06:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073823#M6461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;the problem is the way the DS32 is passing parameters to the build process, and that it seems to handle escape sequences in a wrong way. Just use plain double quotes in that case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 06:27:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073823#M6461</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-06-23T06:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073824#M6462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Enrich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried keeping&amp;nbsp;PROJECT_NAME="${ProjName}" in the -D and it built succesfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I tried using the&amp;nbsp;accesing the project name using below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;static const char projectName[] = PROJECT_NAME;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now If I build it shows an error as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/113619i547E5FEC2402A976/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggest where I went wrong in this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 06:48:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073824#M6462</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2020-06-23T06:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073825#M6463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it looks, not-escaped quotation marks also doesn't work - the quotation marks are ignored when passing to command:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/113639i16FB8941ECEB0A3A/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is definitely S32DS bug - I'll create JIRA ticket for that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 07:12:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073825#M6463</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2020-06-23T07:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073826#M6464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks there is a bug in passing arguments to build command -&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/535594#comment-1330515" title="https://community.nxp.com/thread/535594#comment-1330515"&gt;https://community.nxp.com/thread/535594#comment-1330515&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for discovery it! I'll create ticket for that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 07:15:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073826#M6464</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2020-06-23T07:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073827#M6465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you facing the similar issue with pre-processor build which shows as mentioned below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/113634iC574D5C2B813471E/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 08:18:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073827#M6465</guid>
      <dc:creator>bjrajendra</dc:creator>
      <dc:date>2020-06-23T08:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to access filename</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073828#M6466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;sounds really like a bug to me in the S32DS, and Jiri already created a ticket for it (thanks!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found a workaround in the S32DS: just do it like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/113637i0C4FB748AEB9A7BE/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 08:32:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073828#M6466</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-06-23T08:32:03Z</dc:date>
    </item>
  </channel>
</rss>

