0

我有一个问题。我想使用 USB 日志宏之一,例如NRFX_LOG_INFO()NRF_LOG_INFO()。但是,当我在 openthread/examples/platforms/nrf528xx/src/ 中设置并包含到我的文件中时,我收到以下NRF_LOG_ENABLED 1错误sdk_config.hnrf_log.h

rf_log.h:55:10: fatal error: nrf_strerror.h: No such file or directory
 #include "nrf_strerror.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.

我应该怎么做才能启用此功能?

4

1 回答 1

0

如 Github 问题中所述:https ://github.com/openthread/openthread/issues/5285

In OpenThread repository the NRF_LOG module is not usable (only stubbed). For logging purpose, you can use either OpenThread's otPlatLog functionality in vanilla OpenThread, or download the nRF5 SDK for Thread and Zigbee which gives you full functionality of NRF Logger.

于 2020-07-23T15:48:25.190 回答