cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX Generates Invalid Project

Matt Hollands
Associate II

0690X00000D95e1QAB.pngHi,

I use STM32CubeMX and SW4STM32 on my Macs. When I generate a project using CubeMx on my Mac running MacOSX 10.14 it loads fine into SW4STM32 and builds into a valid .bin. However, project files generated on my Mac running OSX10.15 does not compile correctly. It appears to be missing a target definition and the linker is missing the .ld file. There may be more issues, but these are two things I have noticed. This results in an error:

/var/folders/hd/hgdpnl61555c2brf3034c8_80000gn/T//ccCxPncq.s: Assembler messages:
/var/folders/hd/hgdpnl61555c2brf3034c8_80000gn/T//ccCxPncq.s:211: Error: selected processor does not support `dsb 0xF' in Thumb mode
/var/folders/hd/hgdpnl61555c2brf3034c8_80000gn/T//ccCxPncq.s:222: Error: selected processor does not support `isb 0xF' in Thumb mode
/var/folders/hd/hgdpnl61555c2brf3034c8_80000gn/T//ccCxPncq.s:266: Error: selected processor does not support `dsb 0xF' in Thumb mode
/var/folders/hd/hgdpnl61555c2brf3034c8_80000gn/T//ccCxPncq.s:281: Error: selected processor does not support `dsb 0xF' in Thumb mode
make: *** [Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o] Error 1

I am on the latest SW4STM32 on both machines and I have tried multiple versions of CubeMX (5.3 and 5.5). I have also tried multiple firmware package versions. I do not understand why CubeMX runs differently between the two machines and unfortunately I need to get it working on the OSX10.15 machine.

Can anyone help diagnose this problem?

0 REPLIES 0