error: #5: cannot open source input file “nrf_erratas.h“

最近遇到一个问题,如标题所示
error: #5: cannot open source input file “nrf_erratas.h”
查询资料后发现是keil载入的system_nrf52.c有问题

解决办法
在C:\Keil_v5\ARM\Pack\NordicSemiconductor\nRF_DeviceFamilyPack\8.32.1\Device\Source
找到对应的文件,替换你工程中载入的文件
工程中载入文件的位置在
H:\2020software_zhuxinglong\Source_code\sdk\sdk15.2\nRF5SDK15209412b96\nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_uart\pca10040\s132\arm5_no_packs\RTE\Device\nRF52832_xxAA

写文章记录下,如有更好的办法欢迎评论

你可能感兴趣的:(BLE)