2k views
in Getting started by
Trying to make and download the HelloWord example with IAR.

I already made HelloWorld work with GCC and then followed the directions to include the post process in HelloWorld so I could try it with IAR.

After building the file in emwin and then building it again in IAR received 43 errors all similar to these two and all coming from the Drivers folder:

Building configuration: Project - STM32746G_Discovery
Updating build tree...
ew_bsp_event.c  
Fatal Error[Pe1696]: cannot open source file "stm32f7xx_hal.h" C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\TargetSpecific\ew_bsp_event.c 31
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\TargetSpecific\"
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Project\EWARM\..\Inc\"
            searched: "C:\STM32\STM32Cube_FW_F7\Drivers\CMSIS\Include\"
            searched: "C:\STM32\STM32Cube_FW_F7\Drivers\CMSIS\Device\ST\STM32F7xx\Include\"
            searched: "C:\STM32\STM32Cube_FW_F7\Drivers\STM32F7xx_HAL_Driver\Inc\"
            searched: "C:\STM32\STM32Cube_FW_F7\Drivers\BSP\STM32746G-Discovery\"
            searched: "C:\STM32\STM32Cube_FW_F7\Drivers\BSP\Components\Common\"
            searched: "C:\STM32\STM32Cube_FW_F7\Drivers\BSP\Components\ft5336\"
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Project\EWARM\..\..\Source\"
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Project\EWARM\..\..\..\TargetSpecific\"
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Project\EWARM\..\..\..\Misc\"
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Project\EWARM\..\..\GeneratedCode\"
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Project\EWARM\..\..\..\PlatformPackage\RTE\"
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Project\EWARM\..\..\GeneratedCode\EmWiGfxInclude\
"
            searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\inc\"
            searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\inc\c\"
            current directory: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\TargetSpecific"
Error while running C/C++ Compiler
DeviceDriver.c  
Fatal Error[Pe1696]: cannot open source file "stm32746g_discovery.h" C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Source\DeviceDriver.c 47
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Source\"
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Project\EWARM\..\Inc\"
            searched: "C:\STM32\STM32Cube_FW_F7\Drivers\CMSIS\Include\"
            searched: "C:\STM32\STM32Cube_FW_F7\Drivers\CMSIS\Device\ST\STM32F7xx\Include\"
            searched: "C:\STM32\STM32Cube_FW_F7\Drivers\STM32F7xx_HAL_Driver\Inc\"
            searched: "C:\STM32\STM32Cube_FW_F7\Drivers\BSP\STM32746G-Discovery\"
            searched: "C:\STM32\STM32Cube_FW_F7\Drivers\BSP\Components\Common\"
            searched: "C:\STM32\STM32Cube_FW_F7\Drivers\BSP\Components\ft5336\"
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Project\EWARM\..\..\Source\"
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Project\EWARM\..\..\..\TargetSpecific\"
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Project\EWARM\..\..\..\Misc\"
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Project\EWARM\..\..\GeneratedCode\"
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Project\EWARM\..\..\..\PlatformPackage\RTE\"
            searched: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\Template\Project\EWARM\..\..\GeneratedCode\EmWiGfxInclude\
"
            searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\inc\"
            searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\inc\c\"
            current directory: "C:\Users\tlechman\Documents\Project\IS2500\STM32\STM32F746-Discovery\TargetSpecific"

1 Answer

0 votes
by
Hello,

The IAR project expects the STM32Cube_FW_F7 package at the folder C:\STM32\STM32Cube_FW_F7.

The STM32Cube_FW_F7 package can be downloaded at http://www.st.com/en/embedded-software/stm32cubef7.html.

Regards,
Martin
by

The STM32 file is located within my documents folder.

 

I already have the stm32cube_fw_f7 file in that folder. Are you saying I need to move that folder to C: ?

Do the gcc-arm-none-eabi and the STM32F746-Discovery files also need to be in C: ?

by
In case of the GCC project the Toolchain_Path, the STM32Cube_Path and the ST-LINK_Utility_Path can be adapted in file /build/devenv.cmd.

Using the IAR project the path C:\STM32\STM32Cube_FW_F7 is expected for the STM32Cube_FW_F7 package.

One solution would be to move the STM32Cube_FW_F7 package to C:\STM32\STM32Cube_FW_F7.
Another solution would be to modify the path to STM32Cube_FW_F7 in the IAR project file \Template\Project\EWARM\Project.ewp (text editor, search & replace).

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

...