Loading...
 
Skip to main content

System Workbench for STM32


Make error 258

I had a problem with compiling the simple cubemx project in AC6. It gives acompiling error 258.
New c project file does not include quotation marks for attributepacked and attributeweak under project properities and symbols #Symbols. If you add quotation marks to "attributeweak" and to "attributepacked" , It solves the compiling error 258.

We all have this problem.

I read another thread today that this is fixed in a patch. I have not been able to try this yet.

Do this: Help menu -> Check for Updates, the update will install (V1.13.1).

I also found a fix on this forum,

Change (example for Eclipse and STSW4STM32) in Tool Settings - MCU GCC Compiler - Symbols,

from
weak=attribute__weak
packed=attributepacked__

to
'weak=attribute__weak'
'packed=attributepacked__'

I also see in the forum that STCubeMx has been updated in the last week.

In other words - Update everything and hope for the best! 😉