2025-01-27 04:29 AM - last edited on 2025-01-27 04:48 AM by Andrew Neil
Hi,
I generated the code in CubeMX and opened it in VSCode. However, I cannot run the code because VSCode cannot find main.h. I'm not sure why this is happening. I've generated the code twice, but the problem persists. The main.h file is located in the Core > Inc folder, and main.c is in the Core > Src folder. Does anyone know what might be causing this issue? Thanks!
Solved! Go to Solution.
2025-01-28 06:25 AM
@Bea_12 wrote:It seems like I've resolved one of the issues by changing some settings in STM32CubeMX.
Excellent - what settings did you change?
Please 'Mark as solution' the post which resolved the issue:
https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256
@Bea_12 wrote:No matter what I change, the files remain problematic. Additionally, I forgot to install STM32CubeCLT, but that hasn’t affected anything else so far. I do not know what i could change that my program works. Does anyone know please explain it to me.
That's a new question - please start a new thread for that, then post a link here to that new thread.
In your new thread, you'll need to give more details for people to be able to help you - see: How to write your question to maximize your chances to find a solution