你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

【求助】这个 MDK5 编译警告如何处理

[复制链接]
xiajintaord 提问时间:2019-5-27 11:47 /
警告信息如下:

.\obj\YLN_S106_II.axf: Warning: L6412W: Disabling merging for app_task_core.o(.conststring), unsupported relocation R_ARM_REL32 from app_task_core.o(i.App_Core_Work)
.\obj\YLN_S106_II.axf: Warning: L6412W: Disabling merging for app_task_proc.o(.conststring), unsupported relocation R_ARM_REL32 from app_task_proc.o(i.App_Proc_ParamesChecked)
.\obj\YLN_S106_II.axf: Warning: L6412W: Disabling merging for app_gui_sysset.o(.conststring), unsupported relocation R_ARM_REL32 from app_gui_sysset.o(i.App_Gui_SysSet_Menu_OnMenuEntry)
.\obj\YLN_S106_II.axf: Warning: L6412W: Disabling merging for app_gui_devset.o(.conststring), unsupported relocation R_ARM_REL32 from app_gui_devset.o(i.App_Gui_DevSet_Menu_OnMenuEntry)
.\obj\YLN_S106_II.axf: Warning: L6412W: Disabling merging for app_gui_memory.o(.conststring), unsupported relocation R_ARM_REL32 from app_gui_memory.o(i.Memory_SubMenu_Record_MenuEntry)
.\obj\YLN_S106_II.axf: Warning: L6412W: Disabling merging for app_gui_procset.o(.conststring), unsupported relocation R_ARM_REL32 from app_gui_procset.o(i.App_Gui_ProcSet_CacheLoad)
.\obj\YLN_S106_II.axf: Warning: L6412W: Disabling merging for wfs_nandfs.o(.conststring), unsupported relocation R_ARM_REL32 from wfs_nandfs.o(i.Wfs_NandFAT_PrintDir)
.\obj\YLN_S106_II.axf: Warning: L6412W: Disabling merging for proc_sl651.o(.conststring), unsupported relocation R_ARM_REL32 from proc_sl651.o(i.Sl651_SendPacketToServer)
.\obj\YLN_S106_II.axf: Warning: L6412W: Disabling merging for proc_scsw.o(.conststring), unsupported relocation R_ARM_REL32 from proc_scsw.o(i.ScswProc_DailCmdFromHost)
.\obj\YLN_S106_II.axf: Warning: L6412W: Disabling merging for proc_cqsw.o(.conststring), unsupported relocation R_ARM_REL32 from proc_cqsw.o(i.CqswProc_SendPacketToServer)
.\obj\YLN_S106_II.axf: Warning: L6412W: Disabling merging for comm_ec20_driver.o(.conststring), unsupported relocation R_ARM_REL32 from comm_ec20_driver.o(i.EC20_WriteData)



MDK版本信息:

IDE-Version:
μVision V5.21.1.0
Copyright (C) 2016 ARM Ltd and ARM Germany GmbH. All rights reserved.

License Information:
Capes Microsoft
Microsoft
LIC=8VR63-ABEHM-SYFVA-1BBJF-T85HC-WUFJC

Tool Version Numbers:
Toolchain:        MDK-ARM Plus  Version: 5.21a
Toolchain Path:    D:\MDK5\ARM\ARMCC\Bin
C Compiler:         Armcc.exe        V5.06 update 3 (build 300)
Assembler:          Armasm.exe        V5.06 update 3 (build 300)
Linker/Locator:     ArmLink.exe        V5.06 update 3 (build 300)
Library Manager:    ArmAr.exe        V5.06 update 3 (build 300)
Hex Converter:      FromElf.exe        V5.06 update 3 (build 300)
CPU DLL:               SARMCM3.DLL          V5.21a
Dialog DLL:         DCM.DLL              V1.13.8.0
Target DLL:             Segger\JL2CM3.dll      V2.99.23.0
Dialog DLL:         TCM.DLL              V1.14.14.0


之前用的是MDK4,编译这个工程没有警告信息;
迁移到MDK5之后就多出来了这么一个警告信息,但是程序是可以正常运行的,就是不知道如何解决这个警告,或者是屏蔽这个警告???

收藏 1 评论7 发布时间:2019-5-27 11:47

举报

7个回答
xiajintaord 回答时间:2019-5-27 11:49:22
本帖最后由 xiajintaord 于 2019-5-27 14:39 编辑

查了一下手册,警告代码对应的信息如下:
Disabling merging for section <sec> from object <obj>, non R_ARM_ABS32 relocation from section <srcsec> from object <srcobj>
edmundlee 回答时间:2019-5-27 23:56:40
我记得之前碰到过, 原因是用了最新的库, 库里有个预编译的条件, 低版本的不能用, 不知道你的情况是否一样

评分

参与人数 1蝴蝶豆 +2 收起 理由
STMCU + 2

查看全部评分

xiajintaord 回答时间:2019-5-28 09:05:22
edmundlee 发表于 2019-5-27 23:56
我记得之前碰到过, 原因是用了最新的库, 库里有个预编译的条件, 低版本的不能用, 不知道你的情况是否一 ...

您好,可以说一下具体怎么解决的吗?
xiajintaord 回答时间:2019-5-28 11:42:39
@子曰好人 @电子星辰
edmundlee 回答时间:2019-5-28 13:37:10
xiajintaord 发表于 2019-5-28 09:05
您好,可以说一下具体怎么解决的吗?

一是用回旧的库
二是更新编译器版本

我当时选择了二
xiajintaord 回答时间:2019-7-19 16:17:32
因为是编译之后的链接警告,直接在 linker  配置下屏蔽该代码即可


TIM截图20190719161602.png
专注于你 回答时间:2020-6-18 14:49:29
C:\Users\wj\Desktop
2020-06-18_144745.png

所属标签

相似问题

关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新和工艺
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版