LPCXpresso does not use 'arm-none-eabi-as.exe'

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

LPCXpresso does not use 'arm-none-eabi-as.exe'

723 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cb03scs on Wed Oct 28 06:52:47 MST 2015
I just installed the latest LPCXpresso and tried to compile the freertos_blinky example from the LPC812 package...
To my astonishment The IDE wants to use the as.exe from my minGW64 installation!
Why would the IDE think that this is OK?! It makes no sense to use minGW! The IDE should not even know that minGW exists!

Here is the console output when I build the project:

make -r all
Building file: ../freertos/src/FreeRTOSCommonHooks.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__CODE_RED -D__USE_LPCOPEN -D__MTB_BUFFER_SIZE=128 -D__REDLIB__ -DCORE_M0PLUS -I"C:\Users\cbach\Documents\LPCXpresso_7.9.2_493\workspace\lpc_chip_8xx\inc" -I"C:\Users\cbach\Documents\LPCXpresso_7.9.2_493\workspace\lpc_board_nxp_lpcxpresso_812\inc" -I"C:\Users\cbach\Documents\LPCXpresso_7.9.2_493\workspace\freertos_blinky\example\inc" -I"C:\Users\cbach\Documents\LPCXpresso_7.9.2_493\workspace\freertos_blinky\freertos\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m0 -mthumb -specs=redlib.specs -MMD -MP -MF"freertos/src/FreeRTOSCommonHooks.d" -MT"freertos/src/FreeRTOSCommonHooks.o" -MT"freertos/src/FreeRTOSCommonHooks.d" -o "freertos/src/FreeRTOSCommonHooks.o" "../freertos/src/FreeRTOSCommonHooks.c"
C:/Program Files/mingw-w64/x86_64-4.9.2-posix-seh-rt_v3-rev1/mingw64/bin/as.exe: unrecognized option `-mcpu=cortex-m0'
make: *** [freertos/src/FreeRTOSCommonHooks.o] Error 1

14:33:36 Build Finished (took 638ms)

Can someone please tell me how to tell LPCXpresso to NOT use MinGW?
0 Kudos
Reply
1 Reply

698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cb03scs on Wed Oct 28 07:06:21 MST 2015
OK, found it...

Go to [Window]->[Preferences]->{C/C++}->{Build}->{Environment}
There is a list of Systemvariables that can be overwritten. Remove the MinGW path from the PATH variable and replace it with the LPC tool path.

Now it works...
0 Kudos
Reply