標(biāo)題: warning: #3731-D: intrinsic is deprecated 請(qǐng)問一下這個(gè)警告要怎么消除 [打印本頁(yè)]

作者: 鄭漢松    時(shí)間: 2021-9-11 09:09
標(biāo)題: warning: #3731-D: intrinsic is deprecated 請(qǐng)問一下這個(gè)警告要怎么消除
用的最新的HAL庫(kù),uart相關(guān)的庫(kù)代碼更新了,加了原子鎖還是啥不太懂,繞后然后報(bào)警告..\LIB\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c(3619): warning:  #3731-D: intrinsic is deprecated

作者: hondephy@126.co    時(shí)間: 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




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1