2019-01-19 10:25 PM
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
Solved! Go to Solution.
2019-01-20 08:31 AM
I updated sw4stm32 and then work out!
2019-01-20 01:18 AM
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.
2019-01-20 01:19 AM
Another thing could be the C compiler.
2019-01-20 08:31 AM
I updated sw4stm32 and then work out!
2019-09-30 05:54 AM
How did you update sw4stm32 ?