2024-01-09 04:29 PM
2024-01-09 04:58 PM - edited 2024-01-09 04:59 PM
Don't you have more detailed output, like from the console?
Looks more llike an error in the toolset/setup, not in your code.
Can you build a new project using the generated skeleton code only?
hth
KnarfB
2024-01-10 03:47 AM
2024-01-10 04:21 AM
Oh. And it doesnt compile as a default project. Even when I just add 4 PWM channels, generace C code and press run this error occurs.
2024-01-10 04:28 AM
Complaining it can't find or load CC1, a pass of the compiler. Check presence of tool files and PATH setting. Not installed properly. Do as Admin.
2024-01-10 05:39 AM
in addition, make sure that
- the IDE is installed on a short, simple path like C:\ST\ not containing white space, umlauts, and other "difficult" chars that the underlying software cannot properly handle
- there are no competing other compiler toolchains on the path.
hth
KnarfB
2024-01-10 08:06 AM
Could you direct me little more? I am a complete beginner. Where to check it?
I also found what Mr.KnarfB wrote somewhere that there is this file
C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin
2024-01-10 12:24 PM
That's a Directory, not a File
It should contain the files than make up the compiler, linker, etc.
If you open a command line, ie CMD, you should be able to type "SET" to see the environment variables, including PATH, and you should be able to run the CC1 app
2024-01-10 01:54 PM
Okay now i have less errors.
2024-01-10 02:06 PM
Yes and no, because this is a higher level error which prevents make from running (and therefore producing the previous errors) :(.
Uninstall STM32CubeIDE and make a clean new install to the default path C:\ST. This usually works on an average Windows system.
hth
KnarfB