问题描述
我已经使用 STM32Cube 为 STM32F205RB 生成了一个代码库,以便在 Atollic TrueSTUDIO 中使用.项目没有建立,给出错误:
I have generated a code base using STM32Cube for STM32F205RB to be used within Atollic TrueSTUDIO. The project does not build, giving the error:
arm-atollic-eabi-gcc -c -mthumb -std=gnu90 -DUSE_HAL_DRIVER -DSTM32F205xx -IC:\Users\Elliott\Atollic\TrueSTUDIO\ARM_workspace\USBInterfaceCUBE\USBInterfaceCube/Inc -IC:\Users\Elliott\Atollic\TrueSTUDIO\ARM_workspace\USBInterfaceCUBE\USBInterfaceCube/Drivers/STM32F2xx_HAL_Driver/Inc -IC:\Users\Elliott\Atollic\TrueSTUDIO\ARM_workspace\USBInterfaceCUBE\USBInterfaceCube/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IC:\Users\Elliott\Atollic\TrueSTUDIO\ARM_workspace\USBInterfaceCUBE\USBInterfaceCube/Middlewares/ST/STM32_USB_Device_Library/Class/HID/Inc -IC:\Users\Elliott\Atollic\TrueSTUDIO\ARM_workspace\USBInterfaceCUBE\USBInterfaceCube/Drivers/CMSIS/Include -IC:\Users\Elliott\Atollic\TrueSTUDIO\ARM_workspace\USBInterfaceCUBE\USBInterfaceCube/Drivers/CMSIS/Device/ST/STM32F2xx/Include -IC:\Users\Elliott\Atollic\TrueSTUDIO\ARM_workspace\USBInterfaceCUBE\USBInterfaceCube\Projects\TrueSTUDIO\USBInterfaceCube Configuration/Debug/ -Os -ffunction-sections -fdata-sections -g -Wall -o Drivers\STM32F2xx_HAL_Driver\stm32f2xx_hal_rcc.o ..\..\..\..\Drivers\STM32F2xx_HAL_Driver\Src\stm32f2xx_hal_rcc.c
C:\Users\Elliott\AppData\Local\Temp\ccnE9ju5.s: Assembler messages:
C:\Users\Elliott\AppData\Local\Temp\ccnE9ju5.s:288: Error: selected processor does not support Thumb mode `rbit r3,r3'
C:\Users\Elliott\AppData\Local\Temp\ccnE9ju5.s:298: Error: selected processor does not support Thumb mode `clz r3,r3'
...
我不太确定用这个去哪里 - 我已经看到了更改编译器选项的建议,尽管我无法在 TrueSTUDIO 中找到在哪里执行此操作(让我有些担心的一件事是当我选择项目时属性>C/C++ 构建>设置,我收到一个错误当前显示的页面包含无效值" - 但是,我在 TrueSTUDIO 中新创建的项目上也遇到了同样的错误)
I'm not too sure where to go with this one - I have seen suggestions to change the compiler options, although I am unable to find where to do this within TrueSTUDIO (One thing which worries me somewhat is when I select project properties>C/C++ Build>Settings, I get an error "The currently displayed page contains invalid values" - however, I also get this same error on freshly created projects within TrueSTUDIO)
非常感谢任何想法、建议或澄清!
Any ideas, suggestions or clarifications are greatly appreciated!
推荐答案
在此 IDE 中,您必须在 project/right_click/properties 中设置 uC.然后它将知道在 -mcpu
gcc 选项中设置什么.[]1
In this IDE you must set the uC in the project/right_click/properties. Then it will know what to set in the -mcpu
gcc option.[]1
这篇关于STM32Cube - 项目未构建(所选处理器不支持 Thumb 模式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!