找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1981|回复: 1
收起左侧

warning: #3731-D: intrinsic is deprecated 请问一下这个警告要怎么消除

[复制链接]
ID:514901 发表于 2021-9-11 09:09 | 显示全部楼层 |阅读模式
100黑币
用的最新的HAL库,uart相关的库代码更新了,加了原子锁还是啥不太懂,绕后然后报警告..\LIB\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c(3619): warning:  #3731-D: intrinsic is deprecated

最佳答案

查看完整内容

CAUSE The Arm Compiler does not guarantee to preserve the state of the exclusive monitor. This is why the __ldrex, __ldrexd, __strex and __strexd intrinsics are deprecated. RESOLUTION Either ignore the warnings or update the Arm CMSIS Pack to a version later than 4.3.0 to get these warning messages suppressed. 具体参考:https://www.keil.com/support/docs/3783.htm
回复

使用道具 举报

ID:875095 发表于 2021-9-11 09:09 | 显示全部楼层
CAUSE
The Arm Compiler does not guarantee to preserve the state of the exclusive monitor. This is why the __ldrex, __ldrexd, __strex and __strexd intrinsics are deprecated.

RESOLUTION
Either ignore the warnings or update the Arm CMSIS Pack to a version later than 4.3.0 to get these warning messages suppressed.

具体参考:https://www.keil.com/support/docs/3783.htm
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

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