cancel
Showing results for 
Search instead for 
Did you mean: 

Could somebody help me with this strange hal.o thing?

Sweed
Associate II

Sweed_0-1704846542816.png

 

12 REPLIES 12
KnarfB
Principal III

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

Its like this

Sweed_0-1704887186197.png

i also attach build log file

Sweed
Associate II

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.

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

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

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

 

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Okay now i have less errors. 

Sweed_0-1704923648063.png

 

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