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
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

...