This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSP430FR5969:链接器错误

Guru**** 2538930 points
Other Parts Discussed in Thread: MSP430FR5969

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1018318/msp430fr5969-linker-error

器件型号:MSP430FR5969

您好!

我已经为 MSP430fr5969编写了一个程序,它在 CCS 10中编译和调试时可以正常工作,程序工作正常,现在我正在使用带有 CCS 链接器的 LDRA 封面工具,在那里它会创建一个错误,我已经粘贴到错误块中。 我无法找到它导致错误的原因  

'构建目标:"perdaa_7.out"

'调用:MSP430链接器'

"c /ti/ccs1020/ccs/ccs_base/msp430/lib/5xx_6xx_FRxx:/ti/ccs1020/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/bin/cl430 /ti/ccs1020/ccs/ccs_base/msp430/lib/FR59xx -vmspx --data_model=restricted --use_hw_mpy=F5 --advice:power=all --advice:hw_config=all --define=__MSP430FR5969__--define=_mpu_enable -g --printf_support=minimal --diag_warning=225 --define=/ti/ccs1020/ccs/ccs_base/msp430/include /ti/ccs1020/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/lib ---updati_ature=ature-cn_cp_ature-cn_ategries=-"---cpuaturbaturbi-si-f_up_atrix-ina-cy=-atrie-dategr_en_en_up_en_en_cp-a-cy=-a-cy=-atrie-datrie-m=-r_up_up_atrix-ina-cy=-atrix-ina-caturbi-f_up_atrie-dag_ategr.c -"---a-catrie-dategr.c -a-ce-cy=-/ti/ccs1020/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/include tag_wrap=off --display_error_number --warn_sections --xml_link_info="perdaa_7_linkInfo.xml"--use_hw_init=f5 --rom_model -o "perdaa_7.out""./build_in_test.obj"--use_hw_init_mp5 --rom_model -o"/pa.mobj "/r./pru./pruart./libmobj ./pru./pru./pru.pru./at./mobj in./pru./pru./at./pru./m.obj in./pru./at./r.pru./pru.pru./at./m.pru.at./msp.obj

未定义的首次引用

符号

------ --------

QQQfcn_ptr_num ./uart_interrupt.obj

ldra_buffer ./uart_interrupt.obj

Ldra_port_open ./uart_interrupt.obj

ldra_port_write ./uart_interrupt.obj

ldra_sprintf1./uart_interrupt.obj

qqpopulate_array_fcn_ptrQQ ./uart_interrupt.obj

zzopen ./uart_interrupt.obj

错误#10234-D:未解析的符号仍然存在

备注#10372-D:(ULP 4.1)在此项目中检测到未初始化的端口 A。 建议初始化所有未使用的端口、以消除未使用引脚上浪费的电流消耗。

备注#10372-D:(ULP 4.1)在此项目中检测到未初始化的端口 B。 建议初始化所有未使用的端口、以消除未使用引脚上浪费的电流消耗。

错误#10010:链接期间遇到错误;未生成"perdaa_7.out"

>>编译失败

Makefile:156:目标'perdaa_7.out'的配方失败

gmaking[1]:***[perdaa_7.out]错误1.

Makefile:152:目标'all'的配方失败

gmake:***[全部]错误2.

错误:无法构建程序

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Sasi、

    让我看看我是否能为您提供一些帮助。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Sasi、

    显然、链接器正在您的.UART_INTERRUPT 模块中查找这些符号。  您在哪里定义了这些变量?

    您可以忽略 ULP 4.1警告。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Dennis:

    我联系了 LDRA 团队、并能够解决错误、

    同时使用中断调用函数  

    #if defined (__TI_Compiler_version__)|| Defined (__IAR_systems_ICC__)

    "__TI_Compiler_version___"未在 LDRA 宏中定义、因此通过将其定义为外部解决的问题

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Sasi、

    很棒的发现!  很抱歉、我们花了很长时间才找到解决方案、但我很高兴您能够解决该问题并继续。

    我将此帖子标记为已解决,但如果不是这种情况,请单击“这不能解决我的问题”按钮,并使用更多信息回复此主题。
    如果此主题已锁定、请单击"提出相关问题"按钮、然后在新主题中描述您的问题的当前状态以及您可能需要帮助我们帮助解决您的问题的任何其他详细信息。