cancel
Showing results for 
Search instead for 
Did you mean: 

Error: selected processor does not support `dsb 0xF' in Thumb mode

YFuku.3
Associate III

board: NucleoG071RB

An error happens when I compile codes. There is no error like this when I compile codes in STM32L053

Building file: ../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c

Invoking: MCU GCC Compiler

/Users/username/Documents/stm32cubemx/test/Debug

arm-none-eabi-gcc -mthumb -mfloat-abi=soft '-D__weak=__attribute__((weak))' '-D__packed="__attribute__((__packed__))"' -DUSE_HAL_DRIVER -DSTM32G071xx -I"/Users/username/Documents/stm32cubemx/test/Inc" -I"/Users/username/Documents/stm32cubemx/test/Drivers/STM32G0xx_HAL_Driver/Inc" -I"/Users/username/Documents/stm32cubemx/test/Drivers/STM32G0xx_HAL_Driver/Inc/Legacy" -I"/Users/username/Documents/stm32cubemx/test/Drivers/CMSIS/Device/ST/STM32G0xx/Include" -I"/Users/username/Documents/stm32cubemx/test/Drivers/CMSIS/Include" -Og -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF"Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.d" -MT"Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.o" -o "Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.o" "../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c"

/var/folders/gs/z19g5t5131bcqw3kq_h9knkw0000gn/T//ccU0K4oV.s: Assembler messages:

/var/folders/gs/z19g5t5131bcqw3kq_h9knkw0000gn/T//ccU0K4oV.s:234: Error: selected processor does not support `dsb 0xF' in Thumb mode

/var/folders/gs/z19g5t5131bcqw3kq_h9knkw0000gn/T//ccU0K4oV.s:249: Error: selected processor does not support `dsb 0xF' in Thumb mode

/var/folders/gs/z19g5t5131bcqw3kq_h9knkw0000gn/T//ccU0K4oV.s:696: Error: selected processor does not support `dsb 0xF' in Thumb mode

/var/folders/gs/z19g5t5131bcqw3kq_h9knkw0000gn/T//ccU0K4oV.s:707: Error: selected processor does not support `isb 0xF' in Thumb mode

/var/folders/gs/z19g5t5131bcqw3kq_h9knkw0000gn/T//ccU0K4oV.s:744: Error: selected processor does not support `dmb 0xF' in Thumb mode

make: *** [Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.o] Error 1

Please advise me

1 ACCEPTED SOLUTION

Accepted Solutions
YFuku.3
Associate III

I updated sw4stm32 and then work out!

View solution in original post

4 REPLIES 4
turboscrew
Senior III

My guess is that there's some mix-up of architectures. Different architectures can have different points of coherence parameter to DSB. I'm not sure, but maybe the points of coherence are differently coded. Usually the point of coherence used is SYSTEM (DSB SY). I recall (vaguely), however that SY is usually coded as 0xF. The ARM ARM (Architecture Reference Manual) for your core shows what points of coherence the architecture supports and how they are coded. STM32F071RB is Cortex M0 device, and the manual is ARMv6-M ARM. STM32L053 is Cortex M0+ device, but the architecture is still the same ARMv6.

turboscrew
Senior III

Another thing could be the C compiler.

YFuku.3
Associate III

I updated sw4stm32 and then work out!

AKarg.14
Associate

How did you update sw4stm32 ?