Loading...
 
Skip to main content

System Workbench for STM32


Missing stdio.h?

I'm using system workbench for the first time.
I just installed system workbench for STM32, using Latest Windows 7 64 bit installer Version v2.3, updated on Wednesday, October 25, 2017 at 14:14:50 CEST).
I'm now trying to compile a project. The main.cpp file includes files such as stdio.h, stdlib.h etc, but the project cannot find them.
The target chip is STM32F4/STM32F411xE.
Am I missing something in my installation?
Thank you

Hi, sorry for coming in "late".

I think you are trying to compile with the wrong "perspective" or something.

.cpp and stdio.h etc are C++ files.

Make sure that the code generated and the project you are trying to compile starts with:

  1. include "main.h"
  2. include "stm32f1xx_hal.h"
  3. include "cmsis_os.h"


or similar.

Also, check in STM32CubeMX that the "Toolchain/IDE" selected is "SW4STM32".

Once the code is generated, the CubeMX tool will prompt you if it ca nopen eclipse and your project.

Then take it from there.