<?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: Setting Global Symbols in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374874#M1908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, of course. I reference that, but for whatever reason those symbols don't trickle down to all my C++ files. I have had to add them manually down at the source directory for at least some of the files for reasons that escape me. :smileysad: I agree, one would think it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, it's not clear to me that when I do the same settings on an individual C or C++ file if it is only for that file or for all the files in that directory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Jan 2015 19:35:05 GMT</pubDate>
    <dc:creator>tharonhall</dc:creator>
    <dc:date>2015-01-25T19:35:05Z</dc:date>
    <item>
      <title>Setting Global Symbols</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374872#M1906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realize that I can go to the project settings C/C++ General and Paths and Symbols and set Symbols for both C and C++ files. However, for reasons that escape me, those symbols don't appear to flow down to all of my individual C and C++ files and I have been forced to add them at the source level.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to be able to retarget my code between the 64-pin part in the FRDM board and the 100-pin part on my target board. I am assuming I may need to continue having symbols in multiple places in my project. However, can I tie something like "CPU_TYPE" to something like a global or environment variable so they all change where ever they are so they can be changed from one location in KDS?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, if the symbols worked from the project properties level, I would only have to change it for the GNU C and GNU C++ files there, so it would only be two places to change.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"I'm taking what they're givin' cause I'm working through the weekend." &lt;SPAN aria-label="Silly" class="emoticon_silly emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2015 02:08:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374872#M1906</guid>
      <dc:creator>tharonhall</dc:creator>
      <dc:date>2015-01-25T02:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Global Symbols</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374873#M1907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the Preprocessor settings for this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49536i674123FDAA10728D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This has the effect as having&lt;/P&gt;&lt;P&gt;#define ARM_MATH_CMD0&lt;/P&gt;&lt;P&gt;in the sources.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2015 12:11:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374873#M1907</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-01-25T12:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Global Symbols</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374874#M1908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, of course. I reference that, but for whatever reason those symbols don't trickle down to all my C++ files. I have had to add them manually down at the source directory for at least some of the files for reasons that escape me. :smileysad: I agree, one would think it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, it's not clear to me that when I do the same settings on an individual C or C++ file if it is only for that file or for all the files in that directory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2015 19:35:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374874#M1908</guid>
      <dc:creator>tharonhall</dc:creator>
      <dc:date>2015-01-25T19:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Global Symbols</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374875#M1909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The same preprocessor panel exists for the C++ compiler, maybe you have not added your define there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you can set options per file and folder: select that file/folder, and change the settings there.&lt;/P&gt;&lt;P&gt;Just be aware of the icon decorators, in case you need to see which ones have custom options and which ones not:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/07/30/icon-and-label-decorators-in-eclipse/" title="http://mcuoneclipse.com/2012/07/30/icon-and-label-decorators-in-eclipse/"&gt;Icon and Label Decorators in Eclipse | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 06:31:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374875#M1909</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-01-26T06:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Global Symbols</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374876#M1910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And not surprisingly, you are on to something Erich. Add a zero to your salary. (Leading zero, of course.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do see that several of my C++ files are "pinned". However, a quick Google search is not telling me how to "unpin" them so that everything flows across the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, does anyone know if there is a mechanism for getting symbols and/or defines into the Processor Expert code? Is there a setting or possibly a hook to pull in a header file somewhere? If I had my way, I would MUCH rather have the MCU defined by a header file than fight with the symbols in the build environment. :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 16:46:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374876#M1910</guid>
      <dc:creator>tharonhall</dc:creator>
      <dc:date>2015-01-26T16:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Global Symbols</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374877#M1911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use Processor Expert configuations to define a symbol/define in the generated code: &lt;A href="http://mcuoneclipse.com/2012/03/07/configurations-with-processor-expert/" title="http://mcuoneclipse.com/2012/03/07/configurations-with-processor-expert/"&gt;Configurations with Processor Expert | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for 'inpinning': use 'reset to default' in the resource configuration, see &lt;A href="http://mcuoneclipse.com/2012/04/16/symbol-defined-or-not-thats-the-question/" title="http://mcuoneclipse.com/2012/04/16/symbol-defined-or-not-thats-the-question/"&gt;Symbol defined or not, that’s the question | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 05:46:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374877#M1911</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-01-27T05:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Global Symbols</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374878#M1912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant, Erich! My build is cleaned up and I am creating a 64 pin configuration and a 100 pin configuration. (Of course PE immediately generated errors when I toggled over to the 100 pin, but that is par for the course.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 14:28:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374878#M1912</guid>
      <dc:creator>tharonhall</dc:creator>
      <dc:date>2015-01-27T14:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Global Symbols</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374879#M1913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to follow up for anyone following this topic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to create two build configurations. I had to make copies of the CPU components and the pin_init:PinSettings for each configuration. It blew up the first time I tried it so I went very cautiously and committed each successful step to SVN and do a couple of reverts when things didn't go right. However, in the end it worked and I now can change configurations and target one of two processors. I do have to regenerate the PE code, obviously, but it is fairly easy to do now that it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, cheers for Erich! Yahoo. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 23:08:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Setting-Global-Symbols/m-p/374879#M1913</guid>
      <dc:creator>tharonhall</dc:creator>
      <dc:date>2015-01-27T23:08:17Z</dc:date>
    </item>
  </channel>
</rss>

