Hello Ricardo,
Thanks for the links. I am looking to use Zephyr, VSCode MCUXpresso with the included device tree for the FRDM-RW612. Would there be a sample for openthread CLI? If not, any plans... I am stuck otherwise with my current code base?
The error is:
In file included from C:/Zephyr/zephyr_v4_1_0/zephyr/include/zephyr/toolchain/gcc.h:98,
from C:/Zephyr/zephyr_v4_1_0/zephyr/include/zephyr/toolchain.h:52,
from C:/Zephyr/zephyr_v4_1_0/zephyr/include/zephyr/sys/__assert.h:11,
from C:/Zephyr/zephyr_v4_1_0/zephyr/include/zephyr/sys/iterable_sections.h:10,
from C:/Zephyr/zephyr_v4_1_0/zephyr/include/zephyr/logging/log_instance.h:10,
from C:/Zephyr/zephyr_v4_1_0/zephyr/include/zephyr/logging/log.h:10,
from C:/Zephyr/zephyr_v4_1_0/zephyr/modules/openthread/platform/radio.c:17:
C:/Zephyr/zephyr_v4_1_0/zephyr/include/zephyr/device.h:96:41: error: '__device_dts_ord_DT_CHOSEN_zephyr_ieee802154_ORD' undeclared here (not in a function)
96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
| ^~~~~~~~~
The code lines in zephyr\modules\openthread\platform\radio.c are:
static const struct device *const radio_dev =
DEVICE_DT_GET(DT_CHOSEN(zephyr_ieee802154));
static struct ieee802154_radio_api *radio_api;
I had tried adding this to the device tree, but more is needed.
&nbu_802154_channel {
status = "okay";
};
chosen {
zephyr,ieee802154 = <&nbu_802154_channel>;
};
These were added to prj.conf
CONFIG_CRYPTO=y
CONFIG_MBEDTLS=y
CONFIG_NETWORKING=y
CONFIG_SHELL=y
CONFIG_UART_CONSOLE=y
CONFIG_NET_L2_IEEE802154=y
CONFIG_NET_L2_OPENTHREAD=y
CONFIG_OPENTHREAD_FTD=y
CONFIG_OPENTHREAD_MTD=n
CONFIG_OPENTHREAD_COPROCESSOR_RCP=n
CONFIG_OPENTHREAD_COPROCESSOR_NCP=n
CONFIG_OPENTHREAD_THREAD_VERSION_1_4=y
Thanks