2017-05-16 10:47 AM
I am studying the STM32F746 Discovery board and tried to compile the demo
C:\Users\LM7\STM32Cube\Repository\STM32Cube_FW_F7_V1.7.0\Projects\STM32746G-Discovery\Demonstration
I am using Keil 5.*** IDE.
It gave me an error:
compiling cmsis_os.c...
../../../../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c(110): error: #5: cannot open source input file 'cmsis_armcc.h': No such file or directory #include 'cmsis_armcc.h'../../../../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c: 0 warnings, 1 error2017-05-16 11:36 AM
You'd need to get your Include Paths straightened out
C:\Keil5xx\ARM\PACK\ARM\CMSIS\5.0.1\CMSIS\Include
File found here :
C:\Keil5xx\ARM\PACK\ARM\CMSIS\5.0.1\CMSIS\Include\cmsis_armcc.h
When the tools can't find things, go look with your File Manager of choice, and then make sure the places to find Include files are enumerated in the project's settings.
2017-05-16 11:54 AM
I see. I have to check that. But I wonder why other projects seem to compile and run.
2017-05-16 02:40 PM
>>But I wonder why other projects seem to compile and run.
Because they can find all the files they need and the settings are sufficiently complete/coherent?
Assume a few things, ST isn't using the exact same version of tools, directory placement, or machine as you, there is a lot of material in the example directories, material may be shared across multiple projects, and things might get updated, or might be dependent on external packs installed by you or your tools, expect there to be regression issues where you have to tweak a few settings. You understand your tools, review what the error says, address that, and no one has kittens..