We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I'm trying to get my STM32373C-Eval board LCD working with the STM32CubeMX generated code, but it isn't building after getting set up. Here are my steps:
Expected result: Everything compiles cleanlyActual result: C:\path\to\project\directory\Inc\stm32f3xx_hal_conf.h(206): error: #5: cannot open source input file "stm32f3xx_hal_exti.h": No such file or directory
There are lots of missing file errors. Does anyone know what went wrong in the project and code generation process?
Does this happen with the latest versions of the components in use?
At the moment these are:
- MDK 5.29
- Keil::STM32F3xx_DFP 2.1.0
- STM32CubeMX 5.6.1
Also, the Pack Installer offers a matching example project "File_Demo",that also uses CubeMX
I was able to successfully build this project. Does that work with your setting?
uVision does not know the path of your header files.Simply include them, as mentioned in the below link, section "Specify an 'Include Path' for your project's header files":
http://www.keil.com/support/docs/1740.htm
The demo projects build correctly. It's just the new ones I'm trying to generate. I had expected the codegen to simply magically work, but I'm wondering if there's some more setup or configuration that needs to be done.
That header file is not my code, it was generated by STM32CubeMX. What other configuration steps are necessary to get the generated code to build? I had assumed the automatic generation step would take care of most of that itself.
My colleague published a corresponding Video that explains "Using STM32CubeMX with Keil MDK" - it got created 2016 and of course it is no more up-to-date, but the setup is introduced nicely:
https://www.youtube.com/watch?reload=9&v=EYwyIwClsGc
In simple words, there is no magic to automate the process.Check the compiler errors and act accordingly.Below link can also be helpful:https://www.keil.com/pack/doc/STM32Cube/General/html/cubemx_proj.html
SteveH said:I had assumed the automatic generation step would take care of most of that itself.
That doesn't seem an unreasonable assumption.
But STM32CubeMX is an ST product - nothing to do with Keil or ARM.
So you need to check ST's documentation for any necessary steps to work with Keil
And any feedback you have about STM32CubeMX needs to be directed to ST