<?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>LPCXpresso IDE中的主题 Issue with Assembler flags</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Issue-with-Assembler-flags/m-p/579374#M24075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mmoyano on Wed Oct 01 07:51:52 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm building a project with LPCXpresso 7.4.0 and LPC1778 and I'm trying to compile the whole program (all sources is C plus one assembler .S file) and for each compile time I figured out that the "Assembler flags" have a new "-D" option at end of it. So for each compile time I can see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-c -x assembler-with-cpp -D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-c -x assembler-with-cpp -D -D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-c -x assembler-with-cpp -D -D -D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-c -x assembler-with-cpp -D -D -D -D&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;... and so on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With that "-D" option, the arm-none-eabi-gcc preprocessor cannot include a .h within the .S file. Here a piece of my .S file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define __ASSEMBLY__&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include "MxOS/include/boards/board.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#ifdef MCU_DEFINE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And if the preprocessor cannot include the .h file then it cannot compute the rest of assembler code based on the define MCU_DEFINE and all fails with the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; fatal error: MxOS/include/boards/board.h: No such file or directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont know if that issue is a bug o an error on my workspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could fix the issue for each compile time by deleting all "-D" options of "Assembler flags" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rergards!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maxi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:37:26 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:37:26Z</dc:date>
    <item>
      <title>Issue with Assembler flags</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Issue-with-Assembler-flags/m-p/579374#M24075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mmoyano on Wed Oct 01 07:51:52 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm building a project with LPCXpresso 7.4.0 and LPC1778 and I'm trying to compile the whole program (all sources is C plus one assembler .S file) and for each compile time I figured out that the "Assembler flags" have a new "-D" option at end of it. So for each compile time I can see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-c -x assembler-with-cpp -D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-c -x assembler-with-cpp -D -D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-c -x assembler-with-cpp -D -D -D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-c -x assembler-with-cpp -D -D -D -D&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;... and so on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With that "-D" option, the arm-none-eabi-gcc preprocessor cannot include a .h within the .S file. Here a piece of my .S file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define __ASSEMBLY__&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include "MxOS/include/boards/board.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#ifdef MCU_DEFINE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And if the preprocessor cannot include the .h file then it cannot compute the rest of assembler code based on the define MCU_DEFINE and all fails with the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; fatal error: MxOS/include/boards/board.h: No such file or directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont know if that issue is a bug o an error on my workspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could fix the issue for each compile time by deleting all "-D" options of "Assembler flags" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rergards!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maxi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:37:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Issue-with-Assembler-flags/m-p/579374#M24075</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Assembler flags</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Issue-with-Assembler-flags/m-p/579375#M24076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Wed Oct 01 07:56:23 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Please post your project so we can investigate&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:37:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Issue-with-Assembler-flags/m-p/579375#M24076</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Assembler flags</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Issue-with-Assembler-flags/m-p/579376#M24077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mmoyano on Mon Feb 02 10:13:37 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue is solved in the LPCXpresso v7.6.0_321.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maxi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:37:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Issue-with-Assembler-flags/m-p/579376#M24077</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:37:27Z</dc:date>
    </item>
  </channel>
</rss>

