官方对此的描述:
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
|