I don't have found CONFIG_OPENTHREAD_FTD feature in the bulb project prj.conf or prj_release.conf file, but I have found that it is enabled in the final .config file within output folder.
So I confused where is it set?
BR
Chuan
I don't have found CONFIG_OPENTHREAD_FTD feature in the bulb project prj.conf or prj_release.conf file, but I have found that it is enabled in the final .config file within output folder.
So I confused where is it set?
BR
Chuan
Hi Chuan,
CONFIG_OPENTHREAD_FTD
in your prj.conf
or prj_release.conf
, it can be set by default, by dependencies, or by feature sets you have enabled elsewhere in your configuration. For OpenThread, CONFIG_OPENTHREAD_FTD
is the default device type if not otherwise specified. To override it, explicitly set CONFIG_OPENTHREAD_MTD=y
(for Minimal Thread Device) or CONFIG_OPENTHREAD_FTD=n
in your configuration files. Or it can also be that you have enabled configurations such as CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER or CONFIG_OPENTHREAD_NORDIC_LIBRARY_FTD which will automatically enable CONFIG_OPENTHREAD_FTD.As you said, CONFIG_OPENTHREAD_FTD is the default device type, so in prj.conf or prj_release.conf within bulb project I have not found it.
But for switch project, it is MTD role, but I have not found CONFIG_OPENTHREAD_MTD in project conf files yet, can you tell me the reason?
Besides, I have not found CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER or CONFIG_OPENTHREAD_NORDIC_LIBRARY_FTD in project conf files yet, where to set them?
BR
Chuan
Hello, do you have anything update?
Hi Chuan,
susepc said:But for switch project, it is MTD role, but I have not found CONFIG_OPENTHREAD_MTD in project conf files yet, can you tell me the reason?
If CONFIG_OPENTHREAD_MTD
is not explicitly set in your project configuration files, it may be enabled by default elsewhere in the build system, especially if the sample or board is designed to operate as an MTD. The final .config
file in the build output directory shows the resolved configuration after all defaults, dependencies, and overrides are applied.
susepc said:Besides, I have not found CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER or CONFIG_OPENTHREAD_NORDIC_LIBRARY_FTD in project conf files yet, where to set them?
Those are just examples of configurations that will automatically enable CONFIG_OPENTHREAD_FTD, if used. If you need to set theses configurations, you just need to add them to your prj.conf file.
Regards,
Swathy
Hi Chuan,
susepc said:But for switch project, it is MTD role, but I have not found CONFIG_OPENTHREAD_MTD in project conf files yet, can you tell me the reason?
If CONFIG_OPENTHREAD_MTD
is not explicitly set in your project configuration files, it may be enabled by default elsewhere in the build system, especially if the sample or board is designed to operate as an MTD. The final .config
file in the build output directory shows the resolved configuration after all defaults, dependencies, and overrides are applied.
susepc said:Besides, I have not found CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER or CONFIG_OPENTHREAD_NORDIC_LIBRARY_FTD in project conf files yet, where to set them?
Those are just examples of configurations that will automatically enable CONFIG_OPENTHREAD_FTD, if used. If you need to set theses configurations, you just need to add them to your prj.conf file.
Regards,
Swathy