This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

couldn't parse 'endmenu': no corresponding 'menu'

I'm trying to make a test app that includes sample code from GPS and udp examples.

Building for nRF9160DK with west.

Here's my Kconfig:

```

#
# Copyright (c) 2020 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
#

menu "GPS/UDP combined sample"

config GPS_SAMPLE_NMEA_ONLY
bool "Output only NMEA strings"
help
Outputs only NMEA strings from the GPS.

choice GPS_SAMPLE_ANTENNA
default GPS_SAMPLE_ANTENNA_ONBOARD
prompt "Select which antenna to use for GPS"

config GPS_SAMPLE_ANTENNA_ONBOARD
bool "Use onboard antenna"

config GPS_SAMPLE_ANTENNA_EXTERNAL
bool "Use external antenna"

config UDP_DATA_UPLOAD_SIZE_BYTES
int "Number of bytes transmitted to the server"
default 20

config UDP_DATA_UPLOAD_FREQUENCY_SECONDS
int "How often data is transmitted to the server"
default 30

config UDP_PSM_ENABLE
bool "Enable LTE Power Saving Mode"
default y

config UDP_EDRX_ENABLE
bool "Enable LTE enhanced Discontinuous Reception"

config UDP_RAI_ENABLE
bool "Enable LTE Release Assistance Indication"

endmenu

module = UDP
module-str = UDP sample
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"

menu "Zephyr Kernel"
source "Kconfig.zephyr"
endmenu

```

Evidently I need to better understand what west wants to do with Kconfig.

Suggestions please.

Related