stm32f1xx.h file cannot be found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-16 10:13 PM
Hello everyone, I have a question. I am using CubemX to generate HAL library and FreeRTOS. There are no errors during the compilation, but when I write the code, the auto-completion feature does not work (I have set it up), and even the uint8_t variable does not turn blue. When I look at the project files, it says that the stm32f1xx.h file cannot be found, but the entire project was generated by CubemX, and the file is located in the file path. I have also added the path to the file in C/C++ and there were no errors during the compilation. I cannot find a solution to this problem online, so I am seeking help from the experts here.
- Labels:
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-17 12:29 AM
Hello @Wan_G @and welcome to the community,
It will be helpful if you share your project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-18 1:18 AM - edited ‎2024-11-18 1:21 AM
@Wan_G wrote:There are no errors during the compilation, but when I write the code, the auto-completion feature does not work .
So the problem is just in the Editor - not in the compiler configuration.
You haven't said what IDE you're using. For STM32CubeIDE, try rebuilding the index:
A complex system designed from scratch never works and cannot be patched up to make it work.
