Compile error when CONFIG_WDT_DISABLE_AT_BOOT is enabled for nRF5340 in NCS 2.9.0.

Hi,

I am building the Zephyr hello world example(C:\ncs\v2.9.0\zephyr\samples\hello_world) for nRF5340DK board, the NCS version is 2.9.0.

I enabled watchdog and WDT_DISABLE_AT_BOOT in pj.conf as below:

CONFIG_WATCHDOG=y
CONFIG_HAS_WDT_DISABLE_AT_BOOT=y
CONFIG_WDT_DISABLE_AT_BOOT=y


I did not modify any source code expect the pj.cong above, but I encounter error as below:
error: HAS_WDT_DISABLE_AT_BOOT (defined at drivers/watchdog/Kconfig:14) is assigned in a
configuration file, but is not directly user-configurable (has no prompt). It gets its value
indirectly from other symbols. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_HAS_WDT_DISABLE_AT_BOOT and/or look up
HAS_WDT_DISABLE_AT_BOOT in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.


Question: 
if the configs I added above in pj.conf are wrong, what should I add, and where should I add them?

Thanks
Parents
  • Forgot to tell you that tt the very first, I tried as below:

    NOT specifying the CONFIG_HAS_WDT_DISABLE_AT_BOOT

    but specified CONFIG_WDT_DISABLE_AT_BOOT=y. and CONFIG_WATCHDOG=y in my pj.conf

    KConfig gives WARNING as below:

    warning: WDT_DISABLE_AT_BOOT (defined at drivers/watchdog/Kconfig:17) was assigned the value 'y' but
    got the value 'n'. Check these unsatisfied dependencies: HAS_WDT_DISABLE_AT_BOOT (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_WDT_DISABLE_AT_BOOT and/or look up
    WDT_DISABLE_AT_BOOT in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.


    And then I added CONFIG_HAS_WDT_DISABLE_AT_BOOT=y, so I met warning as my first post above.

Reply
  • Forgot to tell you that tt the very first, I tried as below:

    NOT specifying the CONFIG_HAS_WDT_DISABLE_AT_BOOT

    but specified CONFIG_WDT_DISABLE_AT_BOOT=y. and CONFIG_WATCHDOG=y in my pj.conf

    KConfig gives WARNING as below:

    warning: WDT_DISABLE_AT_BOOT (defined at drivers/watchdog/Kconfig:17) was assigned the value 'y' but
    got the value 'n'. Check these unsatisfied dependencies: HAS_WDT_DISABLE_AT_BOOT (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_WDT_DISABLE_AT_BOOT and/or look up
    WDT_DISABLE_AT_BOOT in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.


    And then I added CONFIG_HAS_WDT_DISABLE_AT_BOOT=y, so I met warning as my first post above.

Children
Related