Atmel工作室7:无法识别的选项`-mrelax'

时间:2016-07-12 09:30:46

标签: c linker freertos atmelstudio

我从Atmel Studio提供的示例库中下载了freeRTOS Basic Example -EVK1100并尝试构建它,我收到此错误

recipe for target 'src/asf/avr32/utils/startup/trampoline_uc3.o' failed 

构建输出给出:

Building file: ../src/asf/avr32/utils/startup/trampoline_uc3.s
    Invoking: AVR32/GNU Assembler : 4.4.7
    C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr32\avr32-gnu-toolchain\bin\avr32-as.exe: unrecognized option `-mrelax'
    make: *** [src/asf/avr32/utils/startup/trampoline_uc3.o] Error 1
    "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr32\avr32-gnu-toolchain\bin\avr32-as.exe" -mpart=uc3a0512 -mrelax -I "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\UC3A_DFP\1.0.53\include\AT32UC3A0512" -I "../thirdparty/freertos/demo/avr32_uc3_example/at32uc3a0512_evk1105" -I "../src/ASF/avr32/utils" -I "../src/config" -I "../src/ASF/avr32/boards/evk1105" -I "../src/ASF/thirdparty/freertos/demo/common/include" -I "../src/ASF/common/utils" -I "../src" -I "../src/ASF/avr32/boards" -I "../src/ASF/thirdparty/freertos/demo/avr32_uc3_example" -I "../src/ASF/avr32/drivers/tc" -I "../src/ASF/avr32/drivers/gpio" -I "../src/ASF/thirdparty/freertos/freertos-7.0.0/source/include" -I "../src/ASF/common/boards" -I "../src/ASF/thirdparty/freertos/demo/avr32_uc3_example/at32uc3a0512_evk1105" -I "../src/ASF/avr32/utils/preprocessor" -I "../src/ASF/avr32/drivers/intc" -I "../src/ASF/thirdparty/freertos/freertos-7.0.0/source/portable/gcc/avr32_uc3" -I "../src/ASF/avr32/drivers/pm" -I "../src/ASF/avr32/drivers/usart" -I "../src/ASF/avr32/drivers/flashc"  -g   -o "src/asf/avr32/utils/startup/trampoline_uc3.o" "../src/asf/avr32/utils/startup/trampoline_uc3.s" 
     C:\Users\xxx\Documents\Atmel Studio\7.0\FREERTOS_UC3_EXAMPLE2\FREERTOS_UC3_EXAMPLE2\Debug\Makefile(518,1): error: recipe for target 'src/asf/avr32/utils/startup/trampoline_uc3.o' failed

我相信链接器抱怨选项-mrelax`unrecognized选项-mrelax。 This reference表明我必须检查放松分支,但我在我的版本中找不到该选项

我想知道是否有适用于我的链接器的补丁,因此它可以识别此选项或检查/取消选中项目文件中的某些选项或....

我正在使用

Atmel Studio 7(版本7.0.934)

Windows 10

提前致谢

1 个答案:

答案 0 :(得分:0)

将Atmel Studio升级到最新版本后,示例项目已成功构建。

获取最新版本:

帮助>检查更新