1.6k views
in Getting started by

I followed the steps:Getting started with STM32F769 Discovery;I have problems in step:Compiling, Linking and Flashing:

Start the batch file 'StartBuildEnvironment.bat'. As a result, a windows command line window should open. The starting directory location is \Examples.

the problem is that I had tried this,but there is no windows command line window opened,just flashed across!!!

who can help me?

1 Answer

0 votes
by

Hi, please try the following:

Open a Windows command line window and navigate to your build directory, into the subdirectory /Build. Then insert the command 

StartBuildEnvironment.bat

What is the result printed within the command line window?

by

Thank you very much.I followed the step:Open a Windows command line window and navigate to your build directory, into the subdirectory /Build. Then insert the command 

StartBuildEnvironment.bat

But it printed :'cmd'is not an internal or external command, nor a running program or batch file.

I don't know what's wrong with it.

by

What happens when you just insert the command:

cmd

This should start the windows command line - it is part of Windows installation (cmd.exe).

by

OK,I had solve this problem by adding environment variable path.But the new problem is when I type:make,there were many errors occured,as the following figure:

 

 

by
It seems, that you try to compile code that is generated for Win32. Are you using the 'HelloWorld' example? Can you just generate code, without modifying the project?

Let me know the results...
by
Yes,Ijust use the 'HelloWorld' example, and I just generate code, without modifying the project.
by

Generating code use Embedded Wizard Studio is OK.

by
Can you copy the output of the compiler as text? I cannot read the screenshot...
by
G:\Embedded Wizard\STM32Fx\STM32F769-Discovery\Examples\HelloWorld>make
-------------------------------------------------
Creating HelloWorld
-------------------------------------------------
Compiler Options: -O2 -Wall -mcpu=cortex-m7 -mlittle-endian -mthumb -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DSTM32F769xx -DUSE_STM32F769I_DISCO -DDATA_IN_ExtSDRAM -DEW_MAX_SURFACE_CACHE_SIZE=0x400000 -DEW_MAX_GLYPH_SURFACE_WIDTH=256 -DEW_MAX_GLYPH_SURFACE_HEIGHT=256 -DEW_FRAME_BUFFER_COLOR_FORMAT_RGB565 -DEW_USE_OFFSCREEN_BUFFER=1 -DEW_USE_DOUBLE_BUFFER=0 -DEW_SURFACE_ROTATION=0
-------------------------------------------------
Creating object and binary directories
-------------------------------------------------
Compiling ./EmWiProject/STM32Fx/Core.c
./EmWiProject/STM32Fx/Core.c:134:1: warning: return type defaults to 'int' [-Wimplicit-int]
 __declspec( naked ) void CoreView__initLayoutContext( void* _this, XRect aBounds,
 ^
./EmWiProject/STM32Fx/Core.c: In function '__declspec':
./EmWiProject/STM32Fx/Core.c:136:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
by
Please open the file Core.c and let me know the following parameters that are written at the beginning of the file:

* Version  : 8.00
* Profile  : STM32Fx
* Platform : STM.STM32Fx.RGB565

Do you have the same results?
by

No,my results are:

* Version  : 8.00
* Profile  : STM32Fx
* Platform : Tara.Win32.RGBA4444

by

I have copied a new project,and when I press F8 for building it,there is an error:

[9.12.2016 13:16:15] Information Generating code for the profile 'STM32Fx' ...
[9.12.2016 13:16:15] Fatal error Can not generate code. The currently selected platform package 'STM.STM32Fx.RGB565' does not provide the code generation module 'codegenerator.ewm'. Possibly the necessary platform package is not installed on your PC or the name of the platform package 'STM.STM32Fx.RGB565' is invalid.
 

by
Ok. So the reason is the following:

On your system, the STM32Fx Platform Package is not installed. In order to avoid the error message  within the HelloWorld project you changed the profile attribute 'Platform Package' to 'Tara.Win32.RGBA4444'. But this code cannot be compiled for STM32 targets...

Please install the 'STM32Fx Platform Package' as written within the Getting Started document.

Does it work?
by
OK ,It works now,thank you very much!

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...