Issue with Assembler flags

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue with Assembler flags

930 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mmoyano on Wed Oct 01 07:51:52 MST 2014
Hello

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:

-c -x assembler-with-cpp -D
-c -x assembler-with-cpp -D -D
-c -x assembler-with-cpp -D -D -D
-c -x assembler-with-cpp -D -D -D -D

... and so on.

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:

#define __ASSEMBLY__
#include "MxOS/include/boards/board.h"
#ifdef MCU_DEFINE
...
...
...
#endif

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:

fatal error: MxOS/include/boards/board.h: No such file or directory

I dont know if that issue is a bug o an error on my workspace.

I could fix the issue for each compile time by deleting all "-D" options of "Assembler flags"

Rergards!

Maxi
0 Kudos
Reply
2 Replies

920 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mmoyano on Mon Feb 02 10:13:37 MST 2015
The issue is solved in the LPCXpresso v7.6.0_321.

Thanks!

Maxi
0 Kudos
Reply

920 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Oct 01 07:56:23 MST 2014
Please post your project so we can investigate
0 Kudos
Reply