Cannot configure the Counter RTC Driver Sample for nRF52840-DK

Hello,

I am using v3.1.0 of the nRF SDK with a nRF52840-DK board.

I would like to run the "Counter RTC Driver Sample" (nrf/samples/zephyr/drivers/counter/alarm). The README states that this example supports nrf52840dk_nrf52840.

I used "Create a new application" -> "Copy a sample" to create a copy of the Counter RTC Driver Sample in a clean workspace. I then created a build configuration with a board target of nrf52840dk/nrf52840. 

This gives a configuration error:

-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
CMake Error at C:/ncs/v3.1.0/zephyr/cmake/modules/boards.cmake:286 (message):
Board qualifiers `` for board `nrf52840dk` not found. Please specify a
valid board target.

Valid board targets for nrf52840dk are:

nrf52840dk/nrf52840

nrf52840dk/nrf52811

I resolved that by adding -DBOARD="nrf52840dk/nrf52840" to Extra CMake Arguments, but now get the following error:


*****************************
* Running CMake for counter *
*****************************

CMake Error at CMakeLists.txt:11 (GET_DEVICE_CONFIG_FILES):
GET_DEVICE_CONFIG_FILES Macro invoked with incorrect arguments for macro
named: GET_DEVICE_CONFIG_FILES

I need some help with next steps - I am not understanding what is wrong here. Apologies if this is simple, I am new to Zephyr and the Nordic SDK.

Please let me know if there is addition information I should include. Thanks!

Related