Loading...
 
Skip to main content

System Workbench for STM32


Error 258 - Code will not compile

Hi

I have updated the stm32cube and the openworkbench installation and now I get the 258 error (again):

Description Resource Path Location Type
make: *** startup/startup_stm32f072xb.o Error 258 FANController C/C++ Problem

Last time (6 months ago) the fix was to set

weak=attribute__weak
packed=attributepacked__
to

'weak=attribute__weak'
'packed=attributepacked__'

This is still set like that. However, the error is back/
I'm running the most recent openworkbench version on 64bit Win7.

I would be very thankfull for suggestions.
Regards
Andreas

Hi sixtimesseven,


I don"t know what exactly happend there, but I got alot of problems to open a generated project from STMCubeMX. Actually I could never run a code generated by STM32CubeMX, I always get a lot of errors.

My suggestion is to you try to create a project from SW4STM32 Wizard and import the files generated by STM32CubeMX


Danilo

Hi Danilo

Thank you for your answer. Yes, sometimes Eclipse is frustrating.
I just tried to delete both:

'weak=attribute__weak'
'packed=attributepacked'

Completly and it works again. Maybe you try that as well?
Regards
Andreas