5.1k views
in Getting started by

Hello.

I have STM32F429 Discovery.
I am practicing the Getting started with STM32: STM32F429 Discovery project with the embedded wizard version 8.20

(https://doc.embedded-wizard.de/getting-started-stm32f429-discovery?v=8.20)

 

I have faithfully implemented the Installing Tools and Software listed in the documentation.

 

step 1 & step2

Install the latest version of Embedded Wizard Studio 8.20 & Install the Embedded Wizard STM32 Platform Package.

 

 

step 3

Installed ST-LINK Utility and succeeded connect test

 

 

 

step 4~5~6~7

 

The folder creation was successful, and each necessary item was downloaded.

Downloaded the gcc-arm-none-eabi-6-2017-q2-update-win32 file and extracted it to the gcc-arm-none-eabi folder,
Download STM32Cube_FW_F4_V1.16.0 file and extract it to STM32Cube_FW_F4 folder.

 

 

 

step 8 

 

 

I also checked the path in the devenv.cmd file.

 

 

 

 

 

 

 

Creating the UI Example

 

I successfully built the Hello world example.

 

 

 

 

 

 

 

 

ERROR : not compiling, flashing

 

C:\STM32\STM32F429-Discovery\Build

 

I ran the StartBuildEnvironment file and proceeded to compile, but an error occurred.

 

 

error massgae is

 

Compiling ../../Source/main.c
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
make: *** [Obj/main.o] Error 1

 

 

Please tell me how to fix the error.

 

 

ps.

Attach the source of the devenv.cmd file

 

-------------------------------------------------------------------------------------------------

@echo off

REM     Please set the ABSOLUTE installation paths of the following tools / software packages:
REM     - ARM GCC toolchain (path to gcc-arm-none-eabi)
REM     - STM32Cube_FW_F4
REM     - ST-LINK_Utility

set Toolchain_Path=C:\STM32\gcc-arm-none-eabi
set STM32Cube_Path=C:\STM32\STM32Cube_FW_F4
set ST-LINK_Utility_Path=C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility

REM ***********************************************************************************************
REM *** no further modifications needed below

set Title=Embedded Wizard Build Environment for STM32F429 Discovery V8.20

color 0A
title %Title%
setlocal enableextensions

echo *******************************************************************************
echo * Welcome to %Title%
echo *******************************************************************************
echo.

IF DEFINED BuildInitialized GOTO run

GOTO setpaths

:setpaths

:: set the path to make and its tools
set PATH=%~dp0;%PATH%
set PATH=%~dp0\Make;%PATH%

:: compiler path
set PATH=%Toolchain_Path%\bin;%PATH%

:: st-link utility path
set PATH=%ST-LINK_Utility_Path%;%PATH%

set BuildInitialized=1

:run

REM do some checks

if not exist "%Toolchain_Path%" (
  echo.
  echo Toolchain check failed:
  echo The ARM GCC toolchain was not found on the expected path:
  echo '%Toolchain_Path%'.
  echo Please install the ARM GCC toolchain into this folder
  echo or adapt the toolchain path in 'Build\devenv.cmd'.
  echo.
  pause
  exit
)

if not exist "%STM32Cube_Path%" (
  echo.
  echo STM32Cube check failed:
  echo The STM32Cube_FW_F4 package was not found on the expected path:
  echo '%STM32Cube_Path%'.
  echo Please install the STM32Cube_FW_F4 package into this folder
  echo or adapt the STM32Cube path in 'Build\devenv.cmd'.
  echo.
  pause
  exit
)

if not exist "%ST-LINK_Utility_Path%" (
  echo.
  echo ST-LINK_Utility check failed:
  echo ST-LINK_Utility not found on path:
  echo "%ST-LINK_Utility_Path%".
  echo Please install the ST-LINK_Utility or adapt the path in 'Build\devenv.cmd'.
  echo.
  pause
  exit
)

echo STM32Cube path:      %STM32Cube_Path%
echo ToolChain path:      %Toolchain_Path%
echo ST-LINK Utitlity:    %ST-LINK_Utility_Path%
echo All checks are passed!
echo.
echo Entering Embedded Wizard Template project
echo.
echo *******************************************************************************
echo *
echo * Getting started with Embedded Wizard and STM32F429 Discovery board:
echo *
echo * http://doc.embedded-wizard.de/getting-started-stm32f429-discovery
echo *
echo *******************************************************************************
echo.

cd ..\Template\Project\GCC

:: set the compiler environment variables
cmd /k gccvar.bat
---------------------------------------------------------------------------------------

1 Answer

0 votes
by

Dear AhnSangHun,

first of all, thank you for your excellent and detailed error description. It seems that you have done all installation steps correctly...

Can you please check the following:

1.) Open the console window (StartBuildEnvironment.bat) and insert the following:

arm-none-eabi-gcc --version

You should get something like this:

arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437]
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Can you confirm that?

2.) Open the console window (StartBuildEnvironment.bat) and insert the following:

dir ..\..\Source

You should see the following content:

08.08.2017  10:07    <DIR>          .
08.08.2017  10:07    <DIR>          ..
07.07.2017  18:47            12.933 DeviceDriver.c
07.07.2017  18:47             5.021 DeviceDriver.h
30.05.2017  14:34             9.199 FreeRTOSConfig.h
21.07.2017  14:45            14.338 main.c

Do you get the same result?

Best regards,

Manfred.

by

Hello and Thanks you for your comment

 

Do you need more information to solve my problem?

 

First, I want to provide answers to the requested information

 

 

 

1) Check console command gcc version

 

 

C:\STM32\STM32F429-Discovery\Template\Project\GCC>arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437]
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

 

 

 

 

2) Determine if a file exists

 

 

C:\STM32\STM32F429-Discovery\Template\Project\GCC>dir ..\..\Source
 C 드라이브의 볼륨에는 이름이 없습니다.(Volumes on drive C do not have names.)
 볼륨 일련 번호(Volume serial number) : 60C9-A66B

 C:\STM32\STM32F429-Discovery\Template\Source 디렉터리(Directory)

2017-09-09  오후 04:54    <DIR>          .
2017-09-09  오후 04:54    <DIR>          ..
2017-07-08  오전 01:47            12,934 DeviceDriver.c
2017-07-08  오전 01:47             5,021 DeviceDriver.h
2016-11-12  오전 02:39             9,199 FreeRTOSConfig.h
2017-07-21  오후 09:45            14,341 main.c

 

 

 

approximately, showing the same result

I hope this information becomes an important key to solving my problem.

 

by
Hello - yes, the results look good...

Two more ideas:

1.) The '\' sign (backslash) looks not like a backslash in your console window. Is this correct and typical for the language settings you are using?

2.) Are you working with restricted user rights? Can you please create a subdirectory 'Obj' within the 'GCC' directory and start 'make' again. Is the error message the same?

Btw: Which Windows version are you using?
by

Hello thx for commant

 

first : The '\' and '₩' is same in console window

window console backslash key display '₩' because my windows default language is kor.

It is the difference of expression
The commands are entered identically

 

 

second : my Window version Window 10 pro

and

I ran StartBuildEnvironment.bat with default permissions.
I did not run it as administrator permissions.

 

I make 'Obj' subdirectory but same error report

Compiling ../../Source/main.c
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
make: *** [Obj/main.o] Error 1

 

'Obj' subdirectory is two create, one create, change path, not make, Regardless of the error, it gives the same error.

 

 

And

The result is the same, even if I give permission limited or administrative.

 

 

limited permission(default permissions)

 

 

 

 

 administrative permission

 

 

same error report

by
Hmmmm.

Just to be sure: The 'Obj' subdiretory should be located within the folder '\Template\Project\GCC\'.

Just open the console, enter 'mkdir Obj' and enter 'make'.

Is the error the same?
by

Unfortunately, the Obj folder already exists.


mkdir If Input the Obj command, the following response is printed
'Subdirectory or file Obj already exists'

 

 

 

And, still output error....

by
Hello,

I just installed everything on a fresh Windows10 PC - as you did. Everything works fine and I was able to compile and link the application.

Strange...

Can you please check the version of the make tool, by typing 'make --version' within the console. Just to avoid that another make tool from another toolchain is used.
by

thanks receive comment

 

I check make version, and program report attach under line

----------

GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

----------

I do not understand the meaning of the word. 'to avoid that another make tool from another toolchain'

how to disable another tool chain and dected running another tool?

 

when I running 'Embedded Wizard Build Enviroment', I turn off another program likely to affect

 

by

I assume that you have another compiler / toolchain / GCC installed on your computer and due to some path settings one of these tools are used. But this is just an idea.

Please let me know the result of

arm-none-eabi-gcc -v ..\..\Source\main.c
by

attatch result

 

--------------------------------------------------------------------------------------

arm-none-eabi-gcc: error: \Source\main.c: No such file or directory
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
Target: arm-none-eabi
Configured with: /tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/src/gcc/configure --build=x86_64-linux-gnu --host=i686-w64-mingw32 --target=arm-none-eabi --prefix=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw --libexecdir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/lib --infodir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-mingw-wildcard --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/arm-none-eabi --with-libiconv-prefix=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-gmp=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-mpfr=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-mpc=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-isl=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-libelf=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors 6-2017-q2-update' --with-multilib-list=rmprofile
Thread model: single
gcc version 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437] (GNU Tools for ARM Embedded Processors 6-2017-q2-update)

------------------------------------------------------------------------

 

by
Everthing looks fine - except the missing file main.c.

I still believe, that the problem is caused by the sign '₩' instead of '\'. Maybe make or gcc does not work properly with '₩'.

The test with 'dir ..\..\Source' shows, that the file main.c is available.

But the test with 'arm-none-eabi-gcc -v ..\..\Source\main.c' shows, that the file main.c cannot be found by the compiler.

Can you try to use only the '\' character? Or can you try to switch to English language?
by

I just see, that there is an additional blank in your input:

Try  'arm-none-eabi-gcc -v ..\..\Source\main.c'

by

I entered two commands
Attach result

 

 

C:\STM32\STM32F429-Discovery\Template\Project\GCC>arm-none-eabi-gcc -v ..\..\Source\main.c
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
Target: arm-none-eabi
Configured with: /tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/src/gcc/configure --build=x86_64-linux-gnu --host=i686-w64-mingw32 --target=arm-none-eabi --prefix=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw --libexecdir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/lib --infodir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-mingw-wildcard --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/arm-none-eabi --with-libiconv-prefix=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-gmp=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-mpfr=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-mpc=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-isl=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-libelf=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors 6-2017-q2-update' --with-multilib-list=rmprofile
Thread model: single
gcc version 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437] (GNU Tools for ARM Embedded Processors 6-2017-q2-update)
COLLECT_GCC_OPTIONS='-v'
 cc1 -quiet -v -iprefix c:\progra~2\egcs\lib\gcc-lib\arm-none-eabi/6.3.1/ -isysroot c:\stm32\gcc-arm-none-eabi\bin\../arm-none-eabi -D__USES_INITFINI__ ..\..\Source\main.c -quiet -dumpbase main.c -auxbase main -version -o C:\Users\admin\AppData\Local\Temp\ccZco12c.s
arm-none-eabi-gcc: error: CreateProcess: No such file or directory

 

 

 

 

C:\STM32\STM32F429-Discovery\Template\Project\GCC>arm-none-eabi-gcc -v ..\.. \Source\main.c
arm-none-eabi-gcc: error: \Source\main.c: No such file or directory
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
Target: arm-none-eabi
Configured with: /tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/src/gcc/configure --build=x86_64-linux-gnu --host=i686-w64-mingw32 --target=arm-none-eabi --prefix=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw --libexecdir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/lib --infodir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-mingw-wildcard --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-mingw/arm-none-eabi --with-libiconv-prefix=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-gmp=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-mpfr=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-mpc=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-isl=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-libelf=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors 6-2017-q2-update' --with-multilib-list=rmprofile
Thread model: single
gcc version 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437] (GNU Tools for ARM Embedded Processors 6-2017-q2-update)

 

 

 

 

by
Something is missing in the gcc toolchain.

Can you check the properties of the folder 'gcc-arm-non-eabi' (local menu within Explorer).

Do you have 5228 files within 243 folders?
by

attatch my STM32 development enviroment directory properties

 

version : gcc-arm-none-eabi-6-2017-q2-update-win32

 

 

by
The content seems to be o.k.

I tried it again on a Windows10 installation and also set the region settings for non-unicode applications to Korean.

Again it works fine and GCC is able to create the process for compiling.

 

Do you have the chance to try on another computer?
by

umm ....
My desktop PC seems to have to be formatted.
I am doing getting started on the same laptop, so it is normally operating command 'make'

 

Upload a screenshot that works normally on my laptop.
I think make install command also operating on my laptop as well.

 

Thank you for your kindness.

 

by

 

 

Succes

 

Thanks!!

Embedded Wizard Website | Privacy Policy | Imprint

...