硬汉嵌入式论坛

 找回密码
 立即注册
查看: 731|回复: 2
收起左侧

[IAR] IAR提示:Call to a non __ramfunc function from within a __ramfunc function

[复制链接]

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106856
QQ
发表于 2023-5-28 11:58:42 | 显示全部楼层 |阅读模式

官方对此的描述:
IAR Embedded Workbench Release History

[EWARM-6744] When a non-ramfunc function is inlined into a __ramfunc function, warning Ta023 "Call to a non __ramfunc function from within a __ramfunc function" is issued. This is incorrect; after the call is inlined there is no call, and the inlined code is inside the caller, which is a __ramfunc function.


屏蔽警告方法:
https://github.com/hrshygoodness ... /emlib/src/em_msc.c

[C] 纯文本查看 复制代码
#ifdef __CC_ARM  /* MDK-ARM compiler */
#pragma arm section code="ram_code"
#endif /* __CC_ARM */
#if defined(__ICCARM__)
/* Suppress warnings originating from use of EFM_ASSERT():              */
/* "Call to a non __ramfunc function from within a __ramfunc function"  */
/* "Possible rom access from within a __ramfunc function"               */
#pragma diag_suppress=Ta022
#pragma diag_suppress=Ta023
#endif



回复

使用道具 举报

59

主题

282

回帖

459

积分

高级会员

积分
459
发表于 2023-5-28 13:51:11 | 显示全部楼层
这个为何会引起警告,会有什么问题吗?
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106856
QQ
 楼主| 发表于 2023-5-28 17:14:02 | 显示全部楼层
tangqianfeng 发表于 2023-5-28 13:51
这个为何会引起警告,会有什么问题吗?

如果不是错误,仅是警告的话,屏蔽了就行。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-7 21:15 , Processed in 0.158440 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表