【问题标题】:Atmel studio 7 : unrecognized option `-mrelax'Atmel studio 7:无法识别的选项“-mrelax”
【发布时间】:2016-07-12 09:30:46
【问题描述】:

我从 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`无法识别的选项 -mrelax。 This reference 表明我必须检查放松分支,但我在我的版本中找不到选项

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

我正在使用

Atmel Studio 7(版本 7.0.934)

Windows 10

提前致谢

【问题讨论】:

  • 您是否考虑升级到最新的 Atmel Studio,内部版本 1006?
  • 好的,我会更新 Atmel 版本并给你反馈
  • @unwind 谢谢它现在有效

标签: c linker freertos atmelstudio


【解决方案1】:

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

获取最新版本:

帮助 > 检查更新

【讨论】:

    猜你喜欢
    • 2017-06-07
    • 1970-01-01
    • 1970-01-01
    • 2014-08-21
    • 2020-07-02
    • 2018-02-06
    • 2021-11-08
    • 2017-02-14
    • 2022-06-17
    相关资源
    最近更新 更多