Loading...
 
Skip to main content

System Workbench for STM32


Error 258 on CubeMX imported project

Hello, Latorre.
Try to change (example for Eclipse and STSW4STM32) in Tool Settings - MCU GCC Compiler - Symbols,
from

__weak=__attribute__((weak))
__packed=__attribute__((__packed__))

to

'__weak=__attribute__((weak))'
'__packed=__attribute__((__packed__))'


And in Includes, from paths like

..\..\..\Inc
..\..\..\Drivers\STM32F1xx_HAL_Driver\Inc

to different slashes

../../../Inc
../../../Drivers/STM32F1xx_HAL_Driver/Inc



But other generated project compiled perfectly with all default settings...

2015-07-28
Possible reason - path to sh in system enviroment variable %PATH%. When sh accessible thru path, compilation failed and requires settings update (above).
If sh not accessible, compilation successful.

 
Collapse/expand modules below