找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開始

搜索
查看: 3322|回復(fù): 1
打印 上一主題 下一主題
收起左側(cè)

warning: #3731-D: intrinsic is deprecated 請(qǐng)問(wèn)一下這個(gè)警告要怎么消除

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
#
ID:514901 發(fā)表于 2021-9-11 09:09 | 只看該作者 回帖獎(jiǎng)勵(lì) |正序?yàn)g覽 |閱讀模式
100黑幣
用的最新的HAL庫(kù),uart相關(guān)的庫(kù)代碼更新了,加了原子鎖還是啥不太懂,繞后然后報(bào)警告..\LIB\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c(3619): warning:  #3731-D: intrinsic is deprecated

最佳答案

查看完整內(nèi)容

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
分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報(bào)

樓主
ID:875095 發(fā)表于 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
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表