Errors building new STemWin/FreeRTOS project.
Hello.
I am strugging to work out why I am unable to build a new project generated by Eclipse IDE.
I am able to build the example projects supplied with STM32Cube_FW_F4_V1.7.0.
I appologise that the description is very long, but as I am new to both Eclipse and Discovery boards I could be getting it wrong at any point.
I am using Eclipse IDE for C/C++ Developers Version: Luna Service Release 2 (4.4.2) under windows 10.
My process for generating the new project is:
Open workspace C:\Users\Ian\Desktop\MyTemplate_StemwinFreeTos.
Select .
Enter Project name “MyProject”. Leave Use default location ticked.
Select Project type .
Select Toolchain . (The only option displyed).
Press to move to Select Configuration form.
Leave Debug and Release options ticked, and press to move to MCU configuration form.
Select STM32F429I-DISCO board from the dropdown options. Press next to move to Project Firmware form.
Select the Hardware Abstraction Layer (Cube HAL).
The following information is displayed: Firmware “STM32Cube_FW_F4_V1.8.0” has been found.
Notice that this is not the same version as STMCube I have been using. I think this firmware was downloaded during a previous attempt.
I am leaving tickbox “Extract all firmware in seperate folder” unticked.
“Add low level drivers in the project” is ticked. Radio button “As sources in the application project” is selected.
StemWin is ticked under “Additional drivers”.
FreeRTOS is ticked under “Additional utilities and third-party utilities”.
I then press to generate the project.
From the project explorer pane, I right click on “MyProject” and select “Build Project”.
The first error I encounter is:
../Middlewares/ST/STemWin/Simulation/WinMain.c:50:21: fatal error: windows.h: No such file or directory
#include
I could not find a windows.h file anywhere on the PC, but after a search of the internet, I installed Microsoft windows SDK7. (I think - this was a couple of weeks ago now. I have been struggling for a little while.)
Again in the project explorer pane, I right clicked on the inc folder under “MyProject”, and selected .
Under I selected All configuraitons from the Configurations dropdown box.
Under I added:
“C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include”
I then pressed and to return to the main application.
Rebuilding again, I get the error:
C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Include/windows.h:151:19: fatal error: excpt.h: No such file or directory
#include
Installing Visual Studio 14.0 and adding the Include path “C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include” resolved this.
Again the build fails. In the problems tab I can see 100 of 2274 errors. All declarations for parameter that I do not understand. For example:
declaration for parameter ‘__dev_t’ but no such parameter.
In _typedefs.h I can see the line with the error:
typedef short __dev_t;
I can not work out what I am doing wrong.
Can somebody please help?
Thanks.