CMSIS build problems with LPCXpresso v4.2.3 [Build 292]

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

CMSIS build problems with LPCXpresso v4.2.3 [Build 292]

1,075 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by erodrigues on Fri Aug 03 06:33:55 MST 2012
Hi!

I'm new with the LPCxpresso software. A few weeks ago I bought a LPCXpresso Motor Control Kit from Embedded Artists.
During this week I have tried to explore the board.Unfortunately I cannot even build something as basic as the CMSIS library.
The error message is always the same:

arm-none-eabi-gcc.exe: CreateProcess: No such file or directory
make: *** [src/core_cm0.o] Error 1

I'm using the latest version of LPCxpresso (v4.2.3 [Build 292]) on windows 7 (64bits).

I have searched this forum but I didn't find a clear solution to this problem. 

Please I really need help.

The build log content is:

**** Build of configuration Debug for project CMSISv1p30_LPC11xx ****

make all
Building file: ../src/core_cm0.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__CODE_RED -D__REDLIB__ -I"C:\Users\SAO\Documents\LPCXpresso_4.2.3_292\workspace4\CMSISv1p30_LPC11xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -v -mcpu=cortex-m0 -mthumb -MMD -MP -MF"src/core_cm0.d" -MT"src/core_cm0.d" -o"src/core_cm0.o" "../src/core_cm0.c"
Using built-in specs.
COLLECT_GCC=c:\nxp\LPCXpresso_4.2.3_292\lpcxpresso\tools\bin\arm-none-eabi-gcc.exe
Target: arm-none-eabi
Configured with: /var/code_red/builds/GNU/2010_100B/build/src/gcc-4.5-2010.09/configure --build=i686-pc-linux-gnu --host=i686-mingw32 --target=arm-none-eabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --enable-extra-sgxxlite-multilibs --with-gnu-as --with-gnu-ld --with-specs='%{save-temps: -fverbose-asm} -D__CRT__RED_SUITE_MAJ__=2010 -D__CRT__RED_SUITE_MIN__=9 -D__CRT__RED_SUITE_REV__=51 %{O2:%{!fno-remove-local-statics: -fremove-local-statics}} %{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics: -fremove-local-statics}}}' --enable-languages=c,c++ --disable-shared --enable-lto --with-newlib --with-pkgversion='Red Suite 2010Q4 by Code Red' --with-bugurl=http://www.code-red-tech.com/support/bugs.html --disable-nls --prefix=/usr/opt/code_red --with-headers=yes --with-sysroot=/usr/opt/code_red/arm-none-eabi --with-build-sysroot=/var/code_red/builds/GNU/2010_100B/build/install/host-i686-mingw32/arm-none-eabi --with-libiconv-prefix=/var/code_red/builds/GNU/2010_100B/build/obj/host-libs-2010.09-51-arm-none-eabi-i686-mingw32/usr --with-gmp=/var/code_red/builds/GNU/2010_100B/build/obj/host-libs-2010.09-51-arm-none-eabi-i686-mingw32/usr --with-mpfr=/var/code_red/builds/GNU/2010_100B/build/obj/host-libs-2010.09-51-arm-none-eabi-i686-mingw32/usr --with-mpc=/var/code_red/builds/GNU/2010_100B/build/obj/host-libs-2010.09-51-arm-none-eabi-i686-mingw32/usr --with-ppl=/var/code_red/builds/GNU/2010_100B/build/obj/host-libs-2010.09-51-arm-none-eabi-i686-mingw32/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-cloog=/var/code_red/builds/GNU/2010_100B/build/obj/host-libs-2010.09-51-arm-none-eabi-i686-mingw32/usr --with-libelf=/var/code_red/builds/GNU/2010_100B/build/obj/host-libs-2010.09-51-arm-none-eabi-i686-mingw32/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/var/code_red/builds/GNU/2010_100B/build/obj/tools-i686-pc-linux-gnu-2010.09-51-arm-none-eabi-i686-mingw32/arm-none-eabi/bin --with-build-time-tools=/var/code_red/builds/GNU/2010_100B/build/obj/tools-i686-pc-linux-gnu-2010.09-51-arm-none-eabi-i686-mingw32/arm-none-eabi/bin
Thread model: single
gcc version 4.5.1 (Red Suite 2010Q4 by Code Red)
COLLECT_GCC_OPTIONS='-DDEBUG' '-D__CODE_RED' '-D__REDLIB__' '-IC:\Users\SAO\Documents\LPCXpresso_4.2.3_292\workspace4\CMSISv1p30_LPC11xx\inc' '-O0' '-g3' '-Wall' '-c' '-fmessage-length=0' '-fno-builtin' '-ffunction-sections' '-v' '-mcpu=cortex-m0' '-mthumb' '-MMD' '-MP' '-MFsrc/core_cm0.d' '-MTsrc/core_cm0.d' '-o' 'src/core_cm0.o' '-D__CRT__RED_SUITE_MAJ__=2010' '-D__CRT__RED_SUITE_MIN__=9' '-D__CRT__RED_SUITE_REV__=51'
cc1 -quiet -v -IC:\Users\SAO\Documents\LPCXpresso_4.2.3_292\workspace4\CMSISv1p30_LPC11xx\inc -imultilib armv6-m -iprefix c:\progra~2\egcs\lib\gcc-lib\arm-none-eabi/4.5.1/ -isysroot c:\nxp\lpcxpresso_4.2.3_292\lpcxpresso\tools\bin\../arm-none-eabi -MMD src/core_cm0.d -MFsrc/core_cm0.d -MP -MTsrc/core_cm0.d -MQ src/core_cm0.o -dD -D__USES_INITFINI__ -DDEBUG -D__CODE_RED -D__REDLIB__ -D__CRT__RED_SUITE_MAJ__=2010 -D__CRT__RED_SUITE_MIN__=9 -D__CRT__RED_SUITE_REV__=51 ../src/core_cm0.c -quiet -dumpbase core_cm0.c -mcpu=cortex-m0 -mthumb -auxbase-strip src/core_cm0.o -g3 -O0 -Wall -version -fmessage-length=0 -fno-builtin -ffunction-sections -o C:\Users\SAO\AppData\Local\Temp\ccIjthKC.s
arm-none-eabi-gcc.exe: CreateProcess: No such file or directory
make: *** [src/core_cm0.o] Error 1

Thanks in advance.
0 Kudos
Reply
30 Replies

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by erodrigues on Mon Aug 13 10:01:14 MST 2012
Hi RedCode Team,

I have added the full paths to system32 and system32\wbem in the Additional Path Directories and  now the debugger is accepting above 8K limit.

Thanks for all.

Zero,

Your tips were also precious.


TheFallGuy,

Yes it is true. I can´t blame anyone for the problems on my windows installation.

Thanks.
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Aug 09 05:35:42 MST 2012
As TheFallGuy says, these should be on your path by default. You must have something in you login that is removing these from your path (autoexec is one candidate).

You should be able to add them in LPCXpresso like this:
Windows-Preferences
-->LPCXpresso
---->Paths and Directories
and add the full paths to system32 and system32\wbem in the Additional Path Directories

However, I would recommend sorting your installation out as we don't know what else is going to be wrong with it...
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Thu Aug 09 05:24:11 MST 2012
You are asking question about the setup of your Windows. You can't blame anybody but yourself for a bad installation... As we have already seen, you have some strange setup on your computer (i.e. GCC_EXEC_PREFIX).

The most likely problem is that you have an autoexec.bat that is setting the path without preserving the previous value:
set PATH=<my path additions>;%PATH%
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by erodrigues on Thu Aug 09 04:36:19 MST 2012
TheFallGuy,


I have added C:\Windows\System32 to the path. But for some reason it is not visible to lpcxpresso. You can see the result below.

Why?

Any idea?

(CodeRed team is there any explication for this?)

!C:=C:\Users\SAO\Documents\LPCXpresso_4.2.3_292\workspaceC\BLDC_Sensored
!EXITCODE=00000000
A=C:\Windows\system32
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\SAO\AppData\Roaming
COMMONPROGRAMFILES=C:\Program Files (x86)\Common Files
COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files
COMMONPROGRAMW6432=C:\Program Files\Common Files
COMPUTERNAME=SAO-TOSH
COMSPEC=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\
IPCONFIG=C:\Windows\system32
LOCALAPPDATA=C:\Users\SAO\AppData\Local
LOGONSERVER=\\SAO-TOSH
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
PATH=/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin:/bin:/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso/tools/bin:/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso/jre/bin/client:/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso/jre/bin:/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso/jre/lib/i386:/c/Program Files/Common Files/Microsoft Shared/Windows Live:/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:%PROGRAMFILES%/Internet Explorer:/c/Program Files (x86)/Windows Live/Shared:/c/Program Files (x86)/Toshiba/Bluetooth Toshiba Stack/sys/:/c/Program Files (x86)/Toshiba/Bluetooth Toshiba Stack/sys/x64/:/c/Program Files/Common Files/Microsoft Shared/Windows Live:/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:%PROGRAMFILES%/Internet Explorer:/c/Program Files (x86)/Windows Live/Shared:/c/Program Files (x86)/Toshiba/Bluetooth Toshiba Stack/sys/:/c/Program Files (x86)/Toshiba/Bluetooth Toshiba Stack/sys/x64/:/c/PROGRA~2/FLASHM~1:/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso:.
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_ARCHITEW6432=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2505
PROGRAMDATA=C:\ProgramData
PROGRAMFILES=C:\Program Files (x86)
PROGRAMFILES(X86)=C:\Program Files (x86)
PROGRAMW6432=C:\Program Files
PROMPT=$P$G
PSMODULEPATH=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
S=C:\Windows\system32
SESSIONNAME=Console
SYSTEMDRIVE=C:
SYSTEMROOT=C:\Windows
TEMP=/tmp
TMP=/tmp
USERDOMAIN=SAO-TOSH
USERNAME=SAO
USERPROFILE=C:\Users\SAO
WINDIR=C:\Windows
TERM=cygwin
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Thu Aug 09 01:55:53 MST 2012
I beg to differ. In an earlier posting, you showed us your environment (env.txt). It showed your PATH as

Quote:

PATH=/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin:/bin:/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso/tools/bin:/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso/jre/bin/client:/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso/jre/bin:/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso/jre/lib/i386:/c/Program  Files/Common Files/Microsoft Shared/Windows Live:/c/Program Files  (x86)/Common Files/Microsoft Shared/Windows Live:/c/Program  Files/Internet Explorer:/c/Program Files (x86)/Windows  Live/Shared:/c/Program Files (x86)/Toshiba/Bluetooth Toshiba  Stack/sys/:/c/Program Files (x86)/Toshiba/Bluetooth Toshiba  Stack/sys/x64/:/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso:.



No sign of system32 in there...
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by erodrigues on Thu Aug 09 01:52:29 MST 2012
The"system variable" path already contains %systemsoot%\system32.
The symptom persists.

Can I introduce the path directly on lpcxpresso?
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Thu Aug 09 01:01:21 MST 2012
Add %systemtoot%\system32 to your path - it should be there by default.
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Aug 08 18:02:17 MST 2012
Wrong registry entry?

http://support.microsoft.com/kb/248121/en-us
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by erodrigues on Wed Aug 08 17:27:39 MST 2012
The only way to execute cscript or ipconfig is typing as follows:

%systemroot%\system32\cscript

%systemroot%\system32\ipconfig

Is there any way to force this approach when the debugger is running?
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Aug 08 12:07:30 MST 2012

Quote: erodrigues

Below  we are informed the ipconfig.exe and cscript.exe are not recognized.


So you are missing two standard Windows utilities which are required for LPCXpresso to run. You will need to fix your Windows installation.

Regards,
CodeRedSupport
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Aug 08 12:00:10 MST 2012
This project is compiling without problems to a nice little 16.5k bin file, so the project is not the problem :)
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by erodrigues on Wed Aug 08 10:48:00 MST 2012
Zero,

The project I'm trying to download is a demo application for controlling a brushless DC motor.
You can check the demo if you want.
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by erodrigues on Wed Aug 08 08:26:17 MST 2012
I ran the crt_emu_cm3_nxp -info-license command and the result was:

C:\nxp\LPCXpresso_4.2.3_292\lpcxpresso\bin>crt_emu_cm3_nxp -info-license
Ni: LPCXpresso Debug Driver v4.0 (May 21 2012 21:42:41)

Below  we are informed the ipconfig.exe and cscript.exe are not recognized.

( I have installed on my machine avast antivirus)
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by erodrigues on Wed Aug 08 06:37:45 MST 2012
Yes, it is a license of 128k.
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Aug 08 06:29:19 MST 2012
Sorry, can't read this license files. I assume your license is 'FULL' =128k ?

Perhaps you want to post your (hopefully simple) project, so problems with project settings could be excluded :)
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by erodrigues on Wed Aug 08 04:50:33 MST 2012
Sorry I forgot to put the zip file.
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by erodrigues on Wed Aug 08 04:41:43 MST 2012
The lpcxpresso ide is finally performing well. I have to confess the installation is painful for a guy like me with a background in electromechanical engineering. Anyway I'm not a virgin to this area. I have been working for two years with CCS and IAR tools. And my primary goal is improving my skills on digital control to implement robust power electronics designs.
  So I would like to thank Zero and the Code Red team for helping me.


  Nevertheless the story is not yet a happy ending…



Now I have a problem with the flash memory. The message is classic: License restriction: Flash image too large for this license.


  I have posted the “.log” file and the content of c:\users\public\lpcxpresso directory in a zip file as recommended.
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Aug 07 06:45:44 MST 2012
Ask your Admin?

Or Google: http://www.windows7hacker.com/index.php/2010/05/how-to-addedit-environment-variables-in-windows-7/
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by erodrigues on Tue Aug 07 06:40:22 MST 2012
How can I do it?
0 Kudos
Reply

948 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Aug 07 05:40:32 MST 2012
Try undefining the environment variable "GCC_EXEC_PREFIX".

Regards,
CodeRedSupport
0 Kudos
Reply