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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

722 次查看
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 项奖励
回复
1 回复

697 次查看
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 项奖励
回复